kernel32/tests: Fix resource leak.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andrey Gusev 2018-01-03 17:35:17 +02:00 committed by Alexandre Julliard
parent 35a744b26b
commit 027e2add2e
1 changed files with 1 additions and 0 deletions

View File

@ -1653,6 +1653,7 @@ static WORD get_thread_fpu_cw(void)
res = CloseHandle(ctx.finished);
ok(!!res, "Failed to close event handle, last error %#x.\n", GetLastError());
CloseHandle(thread);
return ctx.cw;
}