[NTOSKRNL]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 15:00:38 +0000 (15:00 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 15:00:38 +0000 (15:00 +0000)
Fix the previous fix. We must use STATUS_ROS_EXEFMT_UNKNOWN_FORMAT.

svn path=/branches/ntvdm/; revision=63107

ntoskrnl/mm/section.c

index f88fbba..289371d 100644 (file)
@@ -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));
         }