projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOS/MM] Recognize AMD64 image in PeFmtCreateSection failure case
[reactos.git]
/
ntoskrnl
/
mm
/
section.c
diff --git
a/ntoskrnl/mm/section.c
b/ntoskrnl/mm/section.c
index
56ffab8
..
a8d2945
100644
(file)
--- a/
ntoskrnl/mm/section.c
+++ b/
ntoskrnl/mm/section.c
@@
-364,6
+364,10
@@
l_ReadHeaderFromFile:
#endif // _WIN64
break;
+#ifndef _WIN64
+ case IMAGE_NT_OPTIONAL_HDR64_MAGIC:
+ nStatus = STATUS_INVALID_IMAGE_WIN_64;
+#endif
default:
DIE(("Unrecognized optional header, Magic is %X\n", piohOptHeader->Magic));
}