mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOS|MM]
Return STATUS_INVALID_IMAGE_PROTECT if the NT header can't be read from the file. svn path=/trunk/; revision=68126
This commit is contained in:
parent
cecde584e8
commit
5c16c47c54
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ l_ReadHeaderFromFile:
|
|||
NTSTATUS ReturnedStatus = nStatus;
|
||||
|
||||
/* If it attempted to read past the end of the file, it means e_lfanew is invalid */
|
||||
if (ReturnedStatus == STATUS_END_OF_FILE) nStatus = STATUS_ROS_EXEFMT_UNKNOWN_FORMAT;
|
||||
if (ReturnedStatus == STATUS_END_OF_FILE) nStatus = STATUS_INVALID_IMAGE_PROTECT;
|
||||
|
||||
DIE(("ReadFile failed, status %08X\n", ReturnedStatus));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue