From 7e2fd6296a91224ab9d81749a93419e0b485d518 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 24 Apr 2006 16:46:55 +0000 Subject: [PATCH] fix conversion --- stepmania/src/RageUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 2ef0cc5c92..bdbe529909 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -310,7 +310,7 @@ wstring ConvertCodepageToWString( RString s, int iCodePage ) ASSERT_M( iBytes > 0, werr_ssprintf( GetLastError(), "MultiByteToWideChar" ).c_str() ); wchar_t *pTemp = new wchar_t[iBytes]; - MultiByteToWideChar( CP_ACP, 0, s.data(), s.size(), pTemp, iBytes ); + MultiByteToWideChar( iCodePage, 0, s.data(), s.size(), pTemp, iBytes ); wstring sRet( pTemp, iBytes ); delete [] pTemp;