- Fix mixing apples and widgets.

svn path=/trunk/; revision=69550
This commit is contained in:
James Tabor 2015-10-16 02:18:13 +00:00
parent 3ac3b979bb
commit d3334b7fd6

View file

@ -858,7 +858,7 @@ SetKeyboardLayoutName(HWND hwnd)
static BOOL static BOOL
RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters) RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
{ {
MSG msg; MSG msg;
if (pwszCPLParameters) if (pwszCPLParameters)
{ {
STARTUPINFOW StartupInfo; 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((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); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessageW(&msg);
} }
} }
CloseHandle(ProcessInformation.hThread); CloseHandle(ProcessInformation.hThread);