msrle32: show correctly the authors surname in some non-latin1 languages

Mikołaj Zalewski mikolaj at zalewski.pl
Tue Sep 26 13:52:44 CDT 2006


This is done by using Unicode in the message box function and using 
Unicode strings for Czech and Hungarian. In Bulgarian, Russian, 
Japanese, Korean there is also this problem but making the string 
Unicode resources would require using many \xnnnn escape codes.
-------------- next part --------------
diff --git a/dlls/msrle32/msrle32.c b/dlls/msrle32/msrle32.c
index 34ebd79..28da739 100644
--- a/dlls/msrle32/msrle32.c
+++ b/dlls/msrle32/msrle32.c
@@ -1203,16 +1203,16 @@ static LRESULT Configure(CodecInfo *pi, 
 
 static LRESULT About(CodecInfo *pi, HWND hWnd)
 {
-  CHAR szTitle[20];
-  CHAR szAbout[128];
+  WCHAR szTitle[20];
+  WCHAR szAbout[128];
 
   /* pre-condition */
   assert(MSRLE32_hModule != 0);
 
-  LoadStringA(MSRLE32_hModule, IDS_NAME, szTitle, sizeof(szTitle));
-  LoadStringA(MSRLE32_hModule, IDS_ABOUT, szAbout, sizeof(szAbout));
+  LoadStringW(MSRLE32_hModule, IDS_NAME, szTitle, sizeof(szTitle));
+  LoadStringW(MSRLE32_hModule, IDS_ABOUT, szAbout, sizeof(szAbout));
 
-  MessageBoxA(hWnd, szAbout, szTitle, MB_OK|MB_ICONINFORMATION);
+  MessageBoxW(hWnd, szAbout, szTitle, MB_OK|MB_ICONINFORMATION);
 
   return ICERR_OK;
 }
diff --git a/dlls/msrle32/msrle_Cs.rc b/dlls/msrle32/msrle_Cs.rc
index 076038b..51fb1df 100644
--- a/dlls/msrle32/msrle_Cs.rc
+++ b/dlls/msrle32/msrle_Cs.rc
@@ -28,5 +28,5 @@ STRINGTABLE DISCARDABLE
 {
 	IDS_NAME	"WINE-MS-RLE"
 	IDS_DESCRIPTION	"Wine MS-RLE video kodek"
-	IDS_ABOUT       "Wine MS-RLE video kodek\nCopyright 2002 Michael Günnewig"
+	IDS_ABOUT       L"Wine MS-RLE video kodek\nCopyright 2002 Michael Günnewig"
 }
diff --git a/dlls/msrle32/msrle_Hu.rc b/dlls/msrle32/msrle_Hu.rc
index e5a860b..95016ac 100644
--- a/dlls/msrle32/msrle_Hu.rc
+++ b/dlls/msrle32/msrle_Hu.rc
@@ -24,5 +24,5 @@ STRINGTABLE DISCARDABLE
 {
 	IDS_NAME	"WINE-MS-RLE"
 	IDS_DESCRIPTION	"Wine MS-RLE video kodek"
-	IDS_ABOUT       "Wine MS-RLE video kodek\nCopyright 2002, Michael Gnnewig"
+	IDS_ABOUT       L"Wine MS-RLE video kodek\nCopyright 2002, Michael G\x00fcnnewig"
 }
-- 
1.4.1


More information about the wine-patches mailing list