From 8f1d1763a21a66c5cc470a1404230f6b3aef6548 Mon Sep 17 00:00:00 2001 From: gocha Date: Thu, 14 Mar 2013 21:57:09 +0900 Subject: [PATCH] win32: fix multibyte filename display in ROM Information dialog. --- win32/wsnes9x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 6fd4ce25..7d641da2 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -4714,7 +4714,7 @@ INT_PTR CALLBACK DlgInfoProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) { char temp[100]; char romtext[4096]; - sprintf(romtext, "File: %s\r\nName: %s\r\n", Memory.ROMFilename, Memory.RawROMName); + sprintf(romtext, "File: %s\r\nName: %s\r\n", Memory.ROMFilename, _tToChar(_tFromMS932(Memory.RawROMName))); sprintf(temp, "Speed: %02X/%s\r\nROM Map: %s\r\nType: %02x\r\n", Memory.ROMSpeed, ((Memory.ROMSpeed&0x10)!=0)?"FastROM":"SlowROM",(Memory.HiROM)?"HiROM":"LoROM",Memory.ROMType); strcat(romtext, temp); strcat(romtext, "Kart contents: "); @@ -5065,7 +5065,7 @@ INT_PTR CALLBACK DlgInfoProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) case 14:strcat(romtext, "Unknown region 14");break; default:strcat(romtext, "Unknown region 15");break; } - SendDlgItemMessage(hDlg, IDC_ROM_DATA, WM_SETTEXT, 0, (LPARAM)((TCHAR *)_tFromMS932(romtext))); + SendDlgItemMessage(hDlg, IDC_ROM_DATA, WM_SETTEXT, 0, (LPARAM)((TCHAR *)_tFromChar(romtext))); break; } case WM_CTLCOLORSTATIC: