summaryrefslogtreecommitdiff
path: root/inject
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-08-31 22:46:17 +0100
committerJose Fonseca <jfonseca@vmware.com>2016-08-31 22:46:17 +0100
commitc7c4faee4ab810c49b8d6681cd667d435774c66e (patch)
tree337b7dcab9ef6280de12d5d21685cbafb53d0f61 /inject
parente9916d5da557a66eb446c3dcf66d688f5781f473 (diff)
inject: Remove NumberOfRvaAndSizes assertion.
It doesn't seem true nor necessary.
Diffstat (limited to 'inject')
-rw-r--r--inject/injectee.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/inject/injectee.cpp b/inject/injectee.cpp
index 8c278ae7..2987c145 100644
--- a/inject/injectee.cpp
+++ b/inject/injectee.cpp
@@ -311,7 +311,6 @@ getOptionalHeader(HMODULE hModule,
szModule, pNtHeaders->Signature);
return NULL;
}
- assert(pNtHeaders->OptionalHeader.NumberOfRvaAndSizes > 0);
PIMAGE_OPTIONAL_HEADER pOptionalHeader = &pNtHeaders->OptionalHeader;
return pOptionalHeader;
}