[misc] don't prevent Windows shutdown if Rufus is running

* Closes #512
This commit is contained in:
Pete Batard 2015-05-22 00:01:42 +01:00
parent cf391d693d
commit 3edb9d93f7
2 changed files with 9 additions and 8 deletions

View file

@ -2430,6 +2430,7 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
break;
case WM_CLOSE:
case WM_ENDSESSION:
if (format_thid != NULL) {
return (INT_PTR)TRUE;
}