winecfg: Fixed buffersize to GetPrivateProfileStringW.
This commit is contained in:
parent
9099c212d1
commit
a24550aa82
|
@ -583,12 +583,12 @@ static void do_parse_theme(WCHAR *file)
|
||||||
WINE_TRACE("%s\n", wine_dbgstr_w(file));
|
WINE_TRACE("%s\n", wine_dbgstr_w(file));
|
||||||
|
|
||||||
GetPrivateProfileStringW(colorSect, NULL, NULL, keyName,
|
GetPrivateProfileStringW(colorSect, NULL, NULL, keyName,
|
||||||
MAX_PATH*sizeof(WCHAR), file);
|
MAX_PATH, file);
|
||||||
|
|
||||||
keyNamePtr = keyName;
|
keyNamePtr = keyName;
|
||||||
while (*keyNamePtr!=0) {
|
while (*keyNamePtr!=0) {
|
||||||
GetPrivateProfileStringW(colorSect, keyNamePtr, NULL, keyNameValue,
|
GetPrivateProfileStringW(colorSect, keyNamePtr, NULL, keyNameValue,
|
||||||
MAX_PATH*sizeof(WCHAR), file);
|
MAX_PATH, file);
|
||||||
|
|
||||||
keyNameValueSize = WideCharToMultiByte(CP_ACP, 0, keyNameValue, -1,
|
keyNameValueSize = WideCharToMultiByte(CP_ACP, 0, keyNameValue, -1,
|
||||||
keyNameValueA, 0, NULL, NULL);
|
keyNameValueA, 0, NULL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue