Piotr Caban : msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv.

Alexandre Julliard julliard at winehq.org
Fri Mar 1 12:42:24 CST 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Mar  1 14:31:41 2013 +0100

msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv.

---

 dlls/msvcrt/data.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/data.c b/dlls/msvcrt/data.c
index b31e5f7..80e023a 100644
--- a/dlls/msvcrt/data.c
+++ b/dlls/msvcrt/data.c
@@ -431,7 +431,7 @@ static int build_expanded_argv(int *argc, char **argv)
                 args_no++;
                 size += len+path_len;
             }while(FindNextFileA(h, &data));
-            CloseHandle(h);
+            FindClose(h);
         }
 
         if(!len) {
@@ -528,7 +528,7 @@ static int build_expanded_wargv(int *argc, MSVCRT_wchar_t **argv)
                 args_no++;
                 size += len+path_len;
             }while(FindNextFileW(h, &data));
-            CloseHandle(h);
+            FindClose(h);
         }
 
         if(!len) {




More information about the wine-cvs mailing list