Skip to content

Commit

Permalink
fix(addon): Handle WM_ENDSESSION where wParam is false
Browse files Browse the repository at this point in the history
  • Loading branch information
gergof committed Sep 6, 2022
1 parent 79d022a commit b94dfb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/WinShutdownHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ namespace PaymoWinShutdownHandler {

return TRUE;
}
else if (event == WM_ENDSESSION) {
if (wParam == FALSE) {
return 0;
}
}

return CallWindowProc(prevWndProc, hWindow, event, wParam, lParam);
}
Expand Down

0 comments on commit b94dfb1

Please sign in to comment.