--- trunk/reactos/subsys/system/winefile/winefile.c 2005-06-02 21:39:00 UTC (rev 15739)
+++ trunk/reactos/subsys/system/winefile/winefile.c 2005-06-02 22:09:06 UTC (rev 15740)
@@ -1847,15 +1847,23 @@
for(p=InfoStrings; *p; ++p) {
TCHAR subblock[200];
+#ifdef UNICODE
+ TCHAR infoStr[100];
+#endif
LPCTSTR pTxt;
UINT nValLen;
LPCSTR pInfoString = *p;
- wsprintf(subblock, sStringFileInfo, pTranslate->wLanguage, pTranslate->wCodePage, pInfoString);
+#ifdef UNICODE
+ MultiByteToWideChar(CP_ACP, 0, pInfoString, -1, infoStr, 100);
+#else
+#define infoStr pInfoString
+#endif
+ wsprintf(subblock, sStringFileInfo, pTranslate->wLanguage, pTranslate->wCodePage, infoStr);
/* Retrieve file description for language and code page */
if (VerQueryValue(dlg->pVersionData, subblock, (PVOID)&pTxt, &nValLen)) {
- int idx = ListBox_AddString(hlbox, pInfoString);
+ int idx = ListBox_AddString(hlbox, infoStr);
ListBox_SetItemData(hlbox, idx, pTxt);
}
}