]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Silence VC12 compiler warning
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 29 Mar 2015 16:27:49 +0000 (18:27 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 29 Mar 2015 16:27:49 +0000 (18:27 +0200)
libhpcs.c

index e13679ff4dbd0f2441c6effa37203fb5472bf5fe..ea77bbf4935d280882112f3298a9948ee209d234 100644 (file)
--- 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);