Skip to content

Commit 9116a26

Browse files
authored
Maintenance: Revert boolean flip (microsoft#168)
Commit 99ac5f9 ("Maintenance: Clean up some compiler warnings") flipped a boolean check. Revert. Reported-by: @sonyps5201314
1 parent ce9abcf commit 9116a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uimports.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static BOOL UPDATE_IMPORTS_XX(HANDLE hProcess,
106106
}
107107
}
108108

109-
if (inh.IMPORT_DIRECTORY.VirtualAddress == 0 && inh.IMPORT_DIRECTORY.Size == 0) {
109+
if (inh.IMPORT_DIRECTORY.VirtualAddress != 0 && inh.IMPORT_DIRECTORY.Size == 0) {
110110

111111
// Don't worry about changing the PE file,
112112
// because the load information of the original PE header has been saved and will be restored.

0 commit comments

Comments
 (0)