Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

CloseHandle called on invalid handles #29

Closed
5cript opened this issue Feb 13, 2018 · 1 comment
Closed

CloseHandle called on invalid handles #29

5cript opened this issue Feb 13, 2018 · 1 comment

Comments

@5cript
Copy link

5cript commented Feb 13, 2018

CloseHandle(process_info.hProcess);
CloseHandle(process_info.hThread);

These handles are invalid here and should not be closed. This will overwrite "GetLastError" with 6 = "Invalid Handle", so reading the error value to see what went wrong becomes impossible.

@eidheim
Copy link
Owner

eidheim commented Feb 13, 2018

Thank you for reporting this. Fixed as you proposed in the above commit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants