From 5347d115d94eeaa67eddb4eb4c39402d2785f979 Mon Sep 17 00:00:00 2001 From: Dmitry Kostjuchenko Date: Tue, 11 Dec 2018 13:41:24 +0200 Subject: Fixed log message incorrect data format sent to MSVC if Unicode defined. Signed-off-by: Nathan Hjelm --- libusb/core.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/core.c b/libusb/core.c index 171918d..8823b19 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -2481,7 +2481,7 @@ static void usbi_log_str(enum libusb_log_level level, const char *str) { #if defined(USE_SYSTEM_LOGGING_FACILITY) #if defined(OS_WINDOWS) - OutputDebugString(str); + OutputDebugStringA(str); #elif defined(OS_WINCE) /* Windows CE only supports the Unicode version of OutputDebugString. */ WCHAR wbuf[USBI_MAX_LOG_LEN]; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 13b1359..25c45e5 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11357 +#define LIBUSB_NANO 11358 -- cgit v1.2.1