Commit 70b31cf0 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Use unicode calls in SystemClock.

parent 883ca4d9
...@@ -137,11 +137,11 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) { ...@@ -137,11 +137,11 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
outrefresh: outrefresh:
LeaveCriticalSection(&This->safe); LeaveCriticalSection(&This->safe);
while (PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) { while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) {
/** if hwnd we suppose that is a windows event ... */ /** if hwnd we suppose that is a windows event ... */
if (NULL != msg.hwnd) { if (NULL != msg.hwnd) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessageA(&msg); DispatchMessageW(&msg);
} else { } else {
switch (msg.message) { switch (msg.message) {
case WM_QUIT: case WM_QUIT:
...@@ -178,7 +178,7 @@ static BOOL SystemClockPostMessageToAdviseThread(SystemClockImpl* This, UINT iMs ...@@ -178,7 +178,7 @@ static BOOL SystemClockPostMessageToAdviseThread(SystemClockImpl* This, UINT iMs
SetThreadPriority(This->adviseThread, THREAD_PRIORITY_TIME_CRITICAL); SetThreadPriority(This->adviseThread, THREAD_PRIORITY_TIME_CRITICAL);
This->adviseThreadActive = TRUE; This->adviseThreadActive = TRUE;
while(1) { while(1) {
res = PostThreadMessageA(This->adviseThreadId, iMsg, 0, 0); res = PostThreadMessageW(This->adviseThreadId, iMsg, 0, 0);
/* Let the thread creates its message queue (with MsgWaitForMultipleObjects call) by yielding and retrying */ /* Let the thread creates its message queue (with MsgWaitForMultipleObjects call) by yielding and retrying */
if (!res && (GetLastError() == ERROR_INVALID_THREAD_ID)) if (!res && (GetLastError() == ERROR_INVALID_THREAD_ID))
Sleep(0); Sleep(0);
...@@ -187,7 +187,7 @@ static BOOL SystemClockPostMessageToAdviseThread(SystemClockImpl* This, UINT iMs ...@@ -187,7 +187,7 @@ static BOOL SystemClockPostMessageToAdviseThread(SystemClockImpl* This, UINT iMs
} }
return res; return res;
} }
return PostThreadMessageA(This->adviseThreadId, iMsg, 0, 0); return PostThreadMessageW(This->adviseThreadId, iMsg, 0, 0);
} }
static ULONG WINAPI SystemClockImpl_AddRef(IReferenceClock* iface) { static ULONG WINAPI SystemClockImpl_AddRef(IReferenceClock* iface) {
......
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