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:
Zhiyi Zhang 2021-10-19 16:30:38 +08:00 committed by Alexandre Julliard
parent 65095933fd
commit 8b64f0a48b
1 changed files with 1 additions and 0 deletions

View File

@ -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);