mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
fixed: synergys crashes on exit.
This commit is contained in:
parent
2520bf4773
commit
64c7a01ebb
2 changed files with 11 additions and 2 deletions
|
@ -163,7 +163,7 @@ CMSWindowsScreen::CMSWindowsScreen(
|
|||
closeHookLibrary(m_hookLibrary);
|
||||
|
||||
if (m_shellLibrary != NULL)
|
||||
closeHookLibrary(m_shellLibrary);
|
||||
closeShellLibrary(m_shellLibrary);
|
||||
|
||||
s_screen = NULL;
|
||||
throw;
|
||||
|
@ -195,7 +195,7 @@ CMSWindowsScreen::~CMSWindowsScreen()
|
|||
closeHookLibrary(m_hookLibrary);
|
||||
|
||||
if (m_shellLibrary != NULL)
|
||||
closeHookLibrary(m_shellLibrary);
|
||||
closeShellLibrary(m_shellLibrary);
|
||||
|
||||
s_screen = NULL;
|
||||
}
|
||||
|
@ -825,6 +825,14 @@ CMSWindowsScreen::closeHookLibrary(HINSTANCE hookLibrary) const
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
CMSWindowsScreen::closeShellLibrary(HINSTANCE shellLibrary) const
|
||||
{
|
||||
if (shellLibrary != NULL) {
|
||||
FreeLibrary(shellLibrary);
|
||||
}
|
||||
}
|
||||
|
||||
HCURSOR
|
||||
CMSWindowsScreen::createBlankCursor() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue