[1/2] scrrun: Move the counter check into the code block where counter is actually incremented.

Dmitry Timoshkov dmitry at baikal.ru
Mon Feb 10 00:48:27 CST 2014


---
 dlls/scrrun/filesystem.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 59add71..c41709c 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -540,10 +540,9 @@ static HRESULT WINAPI foldercoll_enumvariant_Next(IEnumVARIANT *iface, ULONG cel
             V_VT(&var[count]) = VT_DISPATCH;
             V_DISPATCH(&var[count]) = (IDispatch*)folder;
             count++;
-        }
-
-        if (count >= celt) break;
 
+            if (count >= celt) break;
+        }
     } while (FindNextFileW(handle, &data));
 
     if (fetched)
-- 
1.8.5.3




More information about the wine-patches mailing list