make sure at least one function is imported
This commit is contained in:
parent
7ef71421b0
commit
b8cef05a9c
1 changed files with 4 additions and 1 deletions
|
@ -436,7 +436,10 @@ BOOL hook_got_ddraw_import()
|
|||
|
||||
if (_stricmp(imp_module_name, "ddraw.dll") == 0)
|
||||
{
|
||||
return TRUE;
|
||||
PIMAGE_THUNK_DATA first_thunk = (void*)((DWORD)dos_header + import_desc->FirstThunk);
|
||||
|
||||
if (first_thunk->u1.Function)
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue