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

This commit is contained in:
Mark Jansen 2019-04-30 19:03:17 +02:00
parent e97b412a76
commit 98638cc2df
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -364,6 +364,10 @@ l_ReadHeaderFromFile:
#endif // _WIN64 #endif // _WIN64
break; break;
#ifndef _WIN64
case IMAGE_NT_OPTIONAL_HDR64_MAGIC:
nStatus = STATUS_INVALID_IMAGE_WIN_64;
#endif
default: default:
DIE(("Unrecognized optional header, Magic is %X\n", piohOptHeader->Magic)); DIE(("Unrecognized optional header, Magic is %X\n", piohOptHeader->Magic));
} }