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>
This commit is contained in:
parent
64eced491d
commit
71004a825f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue