mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS/MM] Recognize AMD64 image in PeFmtCreateSection failure case
This commit is contained in:
parent
e97b412a76
commit
98638cc2df
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue