Commit 8b64f0a4 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

msctf: Set size before calling RegQueryValueExW().

parent 65095933
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment