--- np2/win9x/win32sub.cpp 2007/07/20 14:39:11 1.3 +++ np2/win9x/win32sub.cpp 2007/10/26 14:38:34 1.4 @@ -19,7 +19,7 @@ void __msgbox(const char *title, const c // WinAPIだと Win95でバグあるの -static int loadstringresource(HINSTANCE hInstance, UINT uID, +int loadstringresource(HINSTANCE hInstance, UINT uID, LPTSTR lpBuffer, int nBufferMax) { HMODULE hModule; @@ -74,7 +74,7 @@ static int loadstringresource(HINSTANCE lpBuffer = NULL; nBufferMax = 0; } - nLength = WideCharToMultiByte(CP_ACP, 0, pRes + dwPos, nLength, + nLength = WideCharToMultiByte(CP_ACP, 0, (WCHAR *)(pRes + dwPos), nLength, lpBuffer, nBufferMax, NULL, NULL); if (lpBuffer) { lpBuffer[nLength] = '\0';