diff --git a/Source/DialogTemplate.cpp b/Source/DialogTemplate.cpp index c1c88551..b4a500cb 100644 --- a/Source/DialogTemplate.cpp +++ b/Source/DialogTemplate.cpp @@ -59,7 +59,7 @@ void ReadVarLenArr(LPBYTE &seeker, char* &readInto, unsigned int uCodePage) { break; default: { - readInto = winchar_toansi(arr, uCodePage); + readInto = winchar_toansi((WCHAR *) arr, uCodePage); PWCHAR wseeker = PWCHAR(seeker); while (*wseeker++); seeker = LPBYTE(wseeker);