From f413dc5b9a1fa684b9afb45bd00892c33dbd60d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 29 Mar 2015 18:27:49 +0200 Subject: [PATCH] Silence VC12 compiler warning --- libhpcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhpcs.c b/libhpcs.c index e13679f..ea77bbf 100644 --- a/libhpcs.c +++ b/libhpcs.c @@ -791,7 +791,7 @@ static enum HPCS_ParseCode read_string_at_offset(FILE* datafile, const HPCS_offs #ifdef _WIN32 /* String is stored as native Windows WCHAR */ - ret = __win32_wchar_to_utf8(result, string); + ret = __win32_wchar_to_utf8(result, (WCHAR*)string); #else /* Explicitly convert from UTF-16LE (internal WCHAR representation) */ ret = __unix_wchar_to_utf8(result, string, str_length * SEGMENT_SIZE); -- 2.43.5