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>
(cherry picked from commit 71004a825f)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Nikolay Sivov 2019-02-25 11:37:33 +03:00 committed by Michael Stefaniuc
parent a6c2eadfc8
commit ec10ad3dbc
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)