kernel32/tests: Fix resource leak.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
35a744b26b
commit
027e2add2e
@ -1653,6 +1653,7 @@ static WORD get_thread_fpu_cw(void)
|
|||||||
res = CloseHandle(ctx.finished);
|
res = CloseHandle(ctx.finished);
|
||||||
ok(!!res, "Failed to close event handle, last error %#x.\n", GetLastError());
|
ok(!!res, "Failed to close event handle, last error %#x.\n", GetLastError());
|
||||||
|
|
||||||
|
CloseHandle(thread);
|
||||||
return ctx.cw;
|
return ctx.cw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user