Am 28.04.2014 10:06, schrieb tfaber(a)svn.reactos.org:
@@ -235,9 +235,9 @@
}
else
{
- LoadString(GetModuleHandle(NULL), IDS_CANNOT_OPEN, (LPTSTR)lpMessage, 4096);
- CharToOem(lpMessage, lpMessage);
- fprintf (stderr, lpMessage,
+ LoadString (GetModuleHandle (NULL), IDS_CANNOT_OPEN, szMessage,
sizeof(szMessage) / sizeof(szMessage[0]));
+ CharToOemA (szMessage, szMessage);
+ fprintf (stderr, szMessage,
finddata.name);
}
LoadString -> LoadStringA?
Also, shouldn't we go unicode?