[PATCH 2/5] msctf: Set size before calling RegQueryValueExW().
Zhiyi Zhang
zzhang at codeweavers.com
Tue Oct 19 03:30:38 CDT 2021
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
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);
--
2.32.0
More information about the wine-devel
mailing list