From 10404121c4df5bff046cd2eaa4b2053c11614edf Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 21 Feb 2023 12:56:25 +0100 Subject: [PATCH] [winpr,clipboard] fix error message format string --- winpr/libwinpr/clipboard/synthetic_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/clipboard/synthetic_file.c b/winpr/libwinpr/clipboard/synthetic_file.c index 070e5bbb2..bf122d171 100644 --- a/winpr/libwinpr/clipboard/synthetic_file.c +++ b/winpr/libwinpr/clipboard/synthetic_file.c @@ -1180,7 +1180,7 @@ static UINT file_get_range(struct synthetic_file* file, UINT64 offset, UINT32 si if (INVALID_HANDLE_VALUE == file->fd) { error = GetLastError(); - WLog_ERR(TAG, "failed to open file %s: %s", file->local_name, error); + WLog_ERR(TAG, "failed to open file %s: 0x%08" PRIx32, file->local_name, error); return error; } @@ -1189,7 +1189,7 @@ static UINT file_get_range(struct synthetic_file* file, UINT64 offset, UINT32 si file->fd = INVALID_HANDLE_VALUE; CloseHandle(file->fd); error = GetLastError(); - WLog_ERR(TAG, "Get file [%s] information fail: %d", file->local_name, error); + WLog_ERR(TAG, "Get file [%s] information fail: 0x%08" PRIx32, file->local_name, error); return error; }