Mikołaj Zalewski : shell32: autocomplete: Don' t pass NULL pceltFetched to IEnumString_Next.

Alexandre Julliard julliard at winehq.org
Thu Sep 25 10:30:06 CDT 2008


Module: wine
Branch: stable
Commit: 0cece0820a36dae814f95093ff66d505d0bed2aa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0cece0820a36dae814f95093ff66d505d0bed2aa

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Thu Jul 24 11:22:48 2008 +0200

shell32: autocomplete: Don't pass NULL pceltFetched to IEnumString_Next.
(cherry picked from commit 763018e176053b838c42e18048d5ee9dc50bcd41)

---

 dlls/shell32/autocomplete.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 4c32b3f..5eb76f7 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -574,7 +574,8 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
 	    IEnumString_Reset(This->enumstr);
 	    filled = FALSE;
 	    for(cpt = 0;;) {
-		hr = IEnumString_Next(This->enumstr, 1, &strs, NULL);
+	        ULONG fetched;
+		hr = IEnumString_Next(This->enumstr, 1, &strs, &fetched);
 		if (hr != S_OK)
 		    break;
 




More information about the wine-cvs mailing list