From 3a8dbb6ae2e91a5b977641d84e86fdf4d51f1ad5 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 10 Apr 2021 13:37:22 +0200 Subject: [PATCH] api: fix fallback log line printf template Signed-off-by: Simon Rozman --- api/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logger.c b/api/logger.c index 7907437..8afcd3f 100644 --- a/api/logger.c +++ b/api/logger.c @@ -85,7 +85,7 @@ LoggerError(_In_ DWORD Error, _In_z_ const WCHAR *Function, _In_z_ const WCHAR * FormatMessageW( FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_ARGUMENT_ARRAY | FORMAT_MESSAGE_MAX_WIDTH_MASK, - SystemMessage ? L"%4: %1: %3(Code 0x%2!08X!)" : L"%1: Code 0x%2!08X!", + SystemMessage ? L"%4: %1: %3(Code 0x%2!08X!)" : L"%4: %1: Code 0x%2!08X!", 0, 0, (void *)&FormattedMessage,