comctl32/propsheet: Avoid posting uninitialized data (Valgrind).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46691
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Nikolay Sivov 2019-02-25 11:37:33 +03:00 committed by Alexandre Julliard
parent 64eced491d
commit 71004a825f
1 changed files with 2 additions and 2 deletions

View File

@ -2760,7 +2760,7 @@ static void PROPSHEET_CleanUp(HWND hwndDlg)
static INT do_loop(const PropSheetInfo *psInfo)
{
MSG msg;
MSG msg = { 0 };
INT ret = 0;
HWND hwnd = psInfo->hwnd;
HWND parent = psInfo->ppshheader.hwndParent;
@ -2777,7 +2777,7 @@ static INT do_loop(const PropSheetInfo *psInfo)
}
}
if(ret == 0)
if(ret == 0 && msg.message)
PostQuitMessage(msg.wParam);
if(ret != -1)