[NTOS/MM] Recognize AMD64 image in PeFmtCreateSection failure case

This commit is contained in:
Mark Jansen
2019-05-15 19:39:56 +02:00
parent e97b412a76
commit 98638cc2df
+4
View File
@@ -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));
}