fix for ExportIAT(..) functionality

This commit is contained in:
cypherpunk 2014-01-12 17:23:32 +01:00
parent 86ed5042aa
commit ba4754b215
1 changed files with 3 additions and 0 deletions

View File

@ -19412,6 +19412,9 @@ __declspec(dllexport) void TITCALL ImporterAutoSearchIATW(DWORD ProcessId, wchar
ULONG_PTR iatSize = NULL; ULONG_PTR iatSize = NULL;
scylla_searchIAT(ProcessId, iatStart, iatSize, SearchStart, false); scylla_searchIAT(ProcessId, iatStart, iatSize, SearchStart, false);
//we also try to automatically read imports so following call to ExportIAT has a chance
scylla_getImports(iatStart, iatSize, ProcessId);
RtlMoveMemory(pIATStart, &iatStart, sizeof ULONG_PTR); RtlMoveMemory(pIATStart, &iatStart, sizeof ULONG_PTR);
RtlMoveMemory(pIATSize, &iatSize, sizeof ULONG_PTR); RtlMoveMemory(pIATSize, &iatSize, sizeof ULONG_PTR);