From 1922779b82ab2ea6d2253e979c927171c61a8725 Mon Sep 17 00:00:00 2001 From: hyperiris Date: Sat, 28 Feb 2009 18:44:39 +0000 Subject: [PATCH] fix JAP Wii game name/description display git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2473 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/BannerLoader.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/Core/DiscIO/Src/BannerLoader.cpp b/Source/Core/DiscIO/Src/BannerLoader.cpp index ff7d888207..c759a5265a 100644 --- a/Source/Core/DiscIO/Src/BannerLoader.cpp +++ b/Source/Core/DiscIO/Src/BannerLoader.cpp @@ -96,8 +96,6 @@ bool IBannerLoader::CopyToStringAndCheck(std::string& _rDestination, const char* bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16* _src, int length ) { - - bool returnCode = false; #ifdef WIN32 if (_src) @@ -111,8 +109,8 @@ bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16 buffer[i] = swap16(buffer[i]); } - u32 ansiNameSize = WideCharToMultiByte(CP_ACP, 0, - (LPCWSTR)buffer, (int)wcslen((const wchar_t*)buffer), + u32 ansiNameSize = WideCharToMultiByte(932, 0, + (LPCWSTR)buffer, (int)wcslen((LPCWSTR)buffer), NULL, NULL, NULL, NULL); if (ansiNameSize > 0) { @@ -120,8 +118,8 @@ bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16 if (pAnsiStrBuffer) { memset(pAnsiStrBuffer, 0, (ansiNameSize + 1) * sizeof(char)); - if (WideCharToMultiByte(CP_ACP, 0, - (LPCWSTR)buffer, (int)wcslen((const wchar_t*)buffer), + if (WideCharToMultiByte(932, 0, + (LPCWSTR)buffer, (int)wcslen((LPCWSTR)buffer), pAnsiStrBuffer, ansiNameSize, NULL, NULL)) { _rDestination = pAnsiStrBuffer;