Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harden additional CloseHandle calls against bad inputs
Relates to #509 #509 reports intermittent crashes with PhotoDemon's search function. Crashes sometimes occur with the error 0xc000041d . This may be caused by attempting to close null or invalid object handles. PD shouldn't be doing this, but this commit double-checks all handle values before closing them. (Sometimes these checks are redundant because embedded functions safely check for null handle state before returning, but better safe than sorry...)
- Loading branch information
1 parent
04a0b75
commit 6fd40ea
Showing
4 changed files
with
108 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters