Nikolay Sivov : scrrun: Fill find data on second Next() call before testing it.

Alexandre Julliard julliard at winehq.org
Wed Jan 8 13:41:31 CST 2014


Module: wine
Branch: master
Commit: fac0d13ee74979bcfe954ebab66f291efa7eda5c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fac0d13ee74979bcfe954ebab66f291efa7eda5c

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Jan  8 12:37:59 2014 +0400

scrrun: Fill find data on second Next() call before testing it.

---

 dlls/scrrun/filesystem.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index e0c9a34..bfb201c 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -510,6 +510,8 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
 
         This->data.u.foldercoll.find = handle;
     }
+    else if (celt)
+        FindNextFileW(handle, &data);
 
     do
     {
@@ -663,6 +665,8 @@ static HRESULT WINAPI filecoll_enumvariant_Next(IEnumVARIANT *iface, ULONG celt,
 
         This->data.u.filecoll.find = handle;
     }
+    else if (celt)
+        FindNextFileW(handle, &data);
 
     do
     {




More information about the wine-cvs mailing list