From 30a8cbf8b11a00f3a68e0967ffce0b496fd0452f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 3 Apr 2019 10:05:00 -0400 Subject: [PATCH] Fixed VS2017 build for now. --- windows/debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/debug.cpp b/windows/debug.cpp index bd512743..107b53ab 100644 --- a/windows/debug.cpp +++ b/windows/debug.cpp @@ -19,7 +19,7 @@ HRESULT _logLastError(debugargs, const WCHAR *s) useFormatted = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, le, 0, (LPWSTR) (&formatted), 0, NULL) != 0; if (!useFormatted) - formatted = L"\n"; + formatted = (WCHAR *) L"\n"; // TODO msg = strf(L"[libui] %s:%s:%s() %s: GetLastError() == %I32u %s", file, line, func, s, le, formatted); @@ -46,7 +46,7 @@ HRESULT _logHRESULT(debugargs, const WCHAR *s, HRESULT hr) useFormatted = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, hr, 0, (LPWSTR) (&formatted), 0, NULL) != 0; if (!useFormatted) - formatted = L"\n"; + formatted = (WCHAR *) L"\n"; // TODO msg = strf(L"[libui] %s:%s:%s() %s: HRESULT == 0x%08I32X %s", file, line, func, s, hr, formatted);