winecfg: Fixed buffersize to GetPrivateProfileStringW.

This commit is contained in:
Marcus Meissner 2008-09-12 19:15:08 +02:00 committed by Alexandre Julliard
parent 9099c212d1
commit a24550aa82

View File

@ -583,12 +583,12 @@ static void do_parse_theme(WCHAR *file)
WINE_TRACE("%s\n", wine_dbgstr_w(file));
GetPrivateProfileStringW(colorSect, NULL, NULL, keyName,
MAX_PATH*sizeof(WCHAR), file);
MAX_PATH, file);
keyNamePtr = keyName;
while (*keyNamePtr!=0) {
GetPrivateProfileStringW(colorSect, keyNamePtr, NULL, keyNameValue,
MAX_PATH*sizeof(WCHAR), file);
MAX_PATH, file);
keyNameValueSize = WideCharToMultiByte(CP_ACP, 0, keyNameValue, -1,
keyNameValueA, 0, NULL, NULL);