Commit 71004a82 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 64eced49
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment