Skip to content

Commit

Permalink
Fix possible crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Sep 10, 2024
1 parent 62f1ce3 commit faedb2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7128
#define BUILD_NUMBER 7129
8 changes: 4 additions & 4 deletions GDI/WndProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ namespace WndProc
~WNDPROCSTRUCT()
{
Exiting = true;
if (Config.Exiting)
{
return;
}
// Restore WndProc
if (IsWindow(hWnd) && AppWndProc)
{
LOG_LIMIT(100, __FUNCTION__ << " Deleting WndProc instance! " << hWnd);
SetWndProc(hWnd, AppWndProc);
}
if (Config.Exiting)
{
return;
}
// Restore the memory protection
if (MyWndProc)
{
Expand Down

0 comments on commit faedb2b

Please sign in to comment.