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);
|
||||
|
||||
count = sizeof(buf);
|
||||
res = RegQueryValueExW(hkey, szwProfile, 0, NULL, (LPBYTE)buf, &count);
|
||||
if (res == ERROR_SUCCESS)
|
||||
CLSIDFromString(buf,pguidProfile);
|
||||
|
|
Loading…
Reference in New Issue