winetest: Close filehandle on run error (Coverity).

oldstable
Marcus Meissner 2012-10-10 10:12:11 +02:00 committed by Alexandre Julliard
parent 748dd6fed3
commit a89f877fd3
1 changed files with 1 additions and 0 deletions

View File

@ -662,6 +662,7 @@ get_subtests (const char *tempdir, struct wine_test *test, LPSTR res_name)
if (status == -2)
{
report (R_ERROR, "Cannot run %s error %u", test->exename, err);
CloseHandle( subfile );
goto quit;
}