[BROWSEUI]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 20 Feb 2017 16:07:05 +0000 (16:07 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 20 Feb 2017 16:07:05 +0000 (16:07 +0000)
- Correctly pass the buffer size to RegQueryValueW in CAutoComplete::Init. Patch by Víctor Martínez Calvo. CID 1401255
CORE-12795 #resolve

svn path=/trunk/; revision=73860

reactos/dll/win32/browseui/CAutoComplete.cpp

index 15a900c..4c84881 100644 (file)
@@ -184,6 +184,7 @@ HRESULT WINAPI CAutoComplete::Init(HWND hwndEdit, IUnknown *punkACL, LPCOLESTR p
         
                 if (res == ERROR_SUCCESS)
                 {
+                    len = sizeof(result);
                     res = RegQueryValueW(hKey, value, result, &len);
                     if (res == ERROR_SUCCESS)
                     {