Module: vkd3d Branch: master Commit: bf0fda7812e51bf025d6076bbce53dc336375074 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/bf0fda7812e51bf025d6076bbce53d...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Jan 10 16:38:59 2024 +0100
vkd3d: Trace GetLastError() results with %lu.
These are DWORDs, but this is all Windows code, so we can just use %lu.
---
libs/vkd3d/device.c | 2 +- libs/vkd3d/vkd3d_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 39b284ee..ea243977 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -4551,7 +4551,7 @@ HRESULT vkd3d_create_thread(struct vkd3d_instance *instance, thread_data->data = data; if (!(thread->handle = CreateThread(NULL, 0, call_thread_main, thread_data, 0, NULL))) { - ERR("Failed to create thread, error %d.\n", GetLastError()); + ERR("Failed to create thread, error %lu.\n", GetLastError()); vkd3d_free(thread_data); hr = E_FAIL; } diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index 2d27090b..71945ea1 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -249,7 +249,7 @@ static inline void vkd3d_cond_broadcast(struct vkd3d_cond *cond) static inline void vkd3d_cond_wait(struct vkd3d_cond *cond, struct vkd3d_mutex *lock) { if (!SleepConditionVariableCS(&cond->cond, &lock->lock, INFINITE)) - ERR("Could not sleep on the condition variable, error %u.\n", GetLastError()); + ERR("Could not sleep on the condition variable, error %lu.\n", GetLastError()); }
static inline void vkd3d_cond_destroy(struct vkd3d_cond *cond)