Commit d622ffcb authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fixed closing of FindFirstFile handle in build_expanded_argv.

parent 743a42b2
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment