From de02e868fcac5dfbe2199735d3bf1fbf8420c28d Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Fri, 2 May 2014 15:00:38 +0000 Subject: [PATCH] [NTOSKRNL] Fix the previous fix. We must use STATUS_ROS_EXEFMT_UNKNOWN_FORMAT. svn path=/branches/ntvdm/; revision=63107 --- ntoskrnl/mm/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }