mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv.
This commit is contained in:
parent
743a42b259
commit
d622ffcba0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user