diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c index f88fbba3466..289371dae12 100644 --- a/ntoskrnl/mm/section.c +++ b/ntoskrnl/mm/section.c @@ -288,7 +288,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_INVALID_IMAGE_FORMAT; + if (ReturnedStatus == STATUS_END_OF_FILE) nStatus = STATUS_ROS_EXEFMT_UNKNOWN_FORMAT; DIE(("ReadFile failed, status %08X\n", ReturnedStatus)); }