msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv.

This commit is contained in:
Piotr Caban 2013-03-01 14:31:41 +01:00 committed by Alexandre Julliard
parent 743a42b259
commit d622ffcba0
1 changed files with 2 additions and 2 deletions

View File

@ -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) {