- Fix mixing apples and widgets.
authorJames Tabor <james.tabor@reactos.org>
Fri, 16 Oct 2015 02:18:13 +0000 (02:18 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 16 Oct 2015 02:18:13 +0000 (02:18 +0000)
svn path=/trunk/; revision=69550

reactos/dll/win32/syssetup/wizard.c

index 57e5f66..3ce24ba 100644 (file)
@@ -858,7 +858,7 @@ SetKeyboardLayoutName(HWND hwnd)
 static BOOL
 RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
 {
-       MSG msg;
+    MSG msg;
     if (pwszCPLParameters)
     {
         STARTUPINFOW StartupInfo;
@@ -888,10 +888,10 @@ RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
 
         while((MsgWaitForMultipleObjects(1, ProcessInformation.hProcess, FALSE, INFINITE, QS_ALLINPUT|QS_ALLPOSTMESSAGE )) != WAIT_OBJECT_0)
         { 
-           while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+           while(PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
            {
                TranslateMessage(&msg);
-               DispatchMessage(&msg);
+               DispatchMessageW(&msg);
            }
         }
         CloseHandle(ProcessInformation.hThread);