quartz: Use '%u' to print GetLastError().
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 @@
{
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 @@
/* 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 @@
/* 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 @@
{
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;