Module: wine Branch: master Commit: 4fb03d9091c84f2560ed79669e21ca96e7ea8099 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4fb03d9091c84f2560ed79669e...
Author: Francois Gouget fgouget@free.fr Date: Fri Jan 5 13:05:20 2007 +0100
quartz: Use '%u' to print GetLastError().
---
dlls/quartz/memallocator.c | 6 +++--- dlls/quartz/videorenderer.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index 917a542..9b4a0fb 100644 --- a/dlls/quartz/memallocator.c +++ b/dlls/quartz/memallocator.c @@ -245,7 +245,7 @@ static HRESULT WINAPI BaseMemAllocator_C { if (!(This->hSemWaiting = CreateSemaphoreW(NULL, This->pProps->cBuffers, This->pProps->cBuffers, NULL))) { - ERR("Couldn't create semaphore (error was %d)\n", GetLastError()); + ERR("Couldn't create semaphore (error was %u)\n", GetLastError()); hr = HRESULT_FROM_WIN32(GetLastError()); } else @@ -393,7 +393,7 @@ static HRESULT WINAPI BaseMemAllocator_R /* notify a waiting thread that there is now a free buffer */ if (!ReleaseSemaphore(This->hSemWaiting, 1, NULL)) { - ERR("ReleaseSemaphore failed with error %d\n", GetLastError()); + ERR("ReleaseSemaphore failed with error %u\n", GetLastError()); hr = HRESULT_FROM_WIN32(GetLastError()); }
@@ -821,7 +821,7 @@ static HRESULT StdMemAllocator_Free(IMem /* free memory */ if (!VirtualFree(This->pMemory, 0, MEM_RELEASE)) { - ERR("Couldn't free memory. Error: %d\n", GetLastError()); + ERR("Couldn't free memory. Error: %u\n", GetLastError()); return HRESULT_FROM_WIN32(GetLastError()); }
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index 246b097..7adf59a 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -156,7 +156,7 @@ static BOOL CreateRenderingWindow(VideoR { if (!RegisterClassA(&winclass)) { - ERR("Unable to register window %x\n", GetLastError()); + ERR("Unable to register window %u\n", GetLastError()); return FALSE; } wnd_class_registered = TRUE;