Module: wine Branch: master Commit: 8b64f0a48bd3be2b2079896fe9fed8c72c7fd323 URL: https://source.winehq.org/git/wine.git/?a=commit;h=8b64f0a48bd3be2b2079896fe...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Tue Oct 19 16:30:38 2021 +0800
msctf: Set size before calling RegQueryValueExW().
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msctf/inputprocessor.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/msctf/inputprocessor.c b/dlls/msctf/inputprocessor.c index ac7fad67548..5e687f5ccc9 100644 --- a/dlls/msctf/inputprocessor.c +++ b/dlls/msctf/inputprocessor.c @@ -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);