mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 12:24:10 +00:00
msctf: Set size before calling RegQueryValueExW().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
65095933fd
commit
8b64f0a48b
|
@ -432,6 +432,7 @@ static HRESULT WINAPI InputProcessorProfiles_GetDefaultLanguageProfile(
|
||||||
}
|
}
|
||||||
CLSIDFromString(buf,pclsid);
|
CLSIDFromString(buf,pclsid);
|
||||||
|
|
||||||
|
count = sizeof(buf);
|
||||||
res = RegQueryValueExW(hkey, szwProfile, 0, NULL, (LPBYTE)buf, &count);
|
res = RegQueryValueExW(hkey, szwProfile, 0, NULL, (LPBYTE)buf, &count);
|
||||||
if (res == ERROR_SUCCESS)
|
if (res == ERROR_SUCCESS)
|
||||||
CLSIDFromString(buf,pguidProfile);
|
CLSIDFromString(buf,pguidProfile);
|
||||||
|
|
Loading…
Reference in a new issue