From 8b64f0a48bd3be2b2079896fe9fed8c72c7fd323 Mon Sep 17 00:00:00 2001 From: Zhiyi Zhang Date: Tue, 19 Oct 2021 16:30:38 +0800 Subject: [PATCH] msctf: Set size before calling RegQueryValueExW(). Signed-off-by: Zhiyi Zhang Signed-off-by: Alexandre Julliard --- 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);