Closed rchildre3 closed 3 years ago
Nice finds, thanks for the PR!
Hello @bgianfo!
Because this pull request has the auto-merge
label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.
Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 5 hours 38 minutes. No worries though, I will be back when the time is right! :wink:
@msftbot
) and give me an instruction to get started! Learn more here.@rchildre3, @bgianfo
In this PR, the inequality sign in the original text was written as an equal sign,
inh.IMPORT_DIRECTORY.VirtualAddress != NULL
=> inh.IMPORT_DIRECTORY.VirtualAddress == 0
???
which destroyed the original intent. It is estimated that it should be reproduced without testing.
@sonyps5201314 @bgianfo Apologies, fixed in #168
Spotted with MinGW32 g++
uimports.cpp
:IMAGE_DATA_DIRECTORY.VirtualAddress
is aDWORD
type, not a pointer type, so compare against a scalar type.creatwth.cpp
:LoadNtHeaderFromProcess
returns aBOOL
, so compare with falsey check.Microsoft Reviewers: Open in CodeFlow