mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-03 20:48:22 +00:00
Protection if import descriptor tables are non-existant
* This is perhaps for descriptors entirely importing by ordinal and the linker skips the descriptor table.
This commit is contained in:
1 parent
960387d485
commit
3020e5ce95
1 file changed
+1
-1
@@ -156,7 +156,7 @@ struct CachedHookData
|
||||
if(!_stricmp(it->first.c_str(), dllName))
|
||||
hookset = &it->second;
|
||||
|
||||
if(hookset)
|
||||
if(hookset && importDesc->OriginalFirstThunk > 0 && importDesc->FirstThunk > 0)
|
||||
{
|
||||
IMAGE_THUNK_DATA *origFirst = (IMAGE_THUNK_DATA *)(baseAddress + importDesc->OriginalFirstThunk);
|
||||
IMAGE_THUNK_DATA *first = (IMAGE_THUNK_DATA *)(baseAddress + importDesc->FirstThunk);
|
||||
|
||||
Reference in new issue
Block a user