projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sync with trunk (r46275)
[reactos.git]
/
dll
/
ntdll
/
ldr
/
utils.c
diff --git
a/dll/ntdll/ldr/utils.c
b/dll/ntdll/ldr/utils.c
index
ab129e9
..
1fc0adf
100644
(file)
--- a/
dll/ntdll/ldr/utils.c
+++ b/
dll/ntdll/ldr/utils.c
@@
-1600,6
+1600,9
@@
LdrpProcessImportDirectoryEntry(PLDR_DATA_TABLE_ENTRY Module,
IATSize++;
}
+ /* No need to fixup anything if IAT is empty */
+ if (IATSize == 0) return STATUS_SUCCESS;
+
/* Unprotect the region we are about to write into. */
IATBase = (PVOID)ImportAddressList;
IATSize *= sizeof(PVOID*);