Fix an incredibly dumb bitflag error

This commit is contained in:
mkrsym1 2023-07-04 01:03:21 +03:00
parent ce427556a3
commit 06be53ad8e

View File

@ -45,7 +45,7 @@ void inject(HANDLE process, const void *payload, size_t payloadSize, const wchar
}
// Skip DLLs
if ((ntHeaders->FileHeader.Characteristics | IMAGE_FILE_DLL) == IMAGE_FILE_DLL) {
if ((ntHeaders->FileHeader.Characteristics & IMAGE_FILE_DLL) == IMAGE_FILE_DLL) {
goto cont;
}