[BROWSEUI]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 3 Nov 2015 12:31:09 +0000 (12:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 3 Nov 2015 12:31:09 +0000 (12:31 +0000)
- IEnumString::Next's pceltFetched parameter is not optional, so provide it. Fixes exception when using Emerge Desktop

svn path=/trunk/; revision=69792

reactos/dll/win32/browseui/CAutoComplete.cpp

index 9e05525..cb00cb3 100644 (file)
@@ -262,6 +262,7 @@ LRESULT APIENTRY CAutoComplete::ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM
     RECT r;
     BOOL control, filled, displayall = FALSE;
     int cpt, height, sel;
+    ULONG fetched;
 
     if (!pThis->enabled)
     {
@@ -429,7 +430,7 @@ LRESULT APIENTRY CAutoComplete::ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM
             
             for(cpt = 0;;)
             {
-                hr = pThis->enumstr->Next(1, &strs, NULL);
+                hr = pThis->enumstr->Next(1, &strs, &fetched);
                 if (hr != S_OK)
                     break;