Author: akhaldi
Date: Thu Aug 16 15:39:40 2012
New Revision: 57086
URL:
http://svn.reactos.org/svn/reactos?rev=57086&view=rev
Log:
[KERNEL32]
* Fix a comment and a last error value. By Hermes Belusca.
See issue #7240 for more details.
Modified:
trunk/reactos/dll/win32/kernel32/client/proc.c
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Thu Aug 16 15:39:40 2012
@@ -2976,7 +2976,11 @@
IMAGE_SUBSYSTEM_WINDOWS_CUI != SectionImageInfo.SubSystemType)
{
DPRINT1("Invalid subsystem %d\n", SectionImageInfo.SubSystemType);
- SetLastError(ERROR_BAD_EXE_FORMAT);
+ /*
+ * Despite the name of the error code suggests, it corresponds to the
+ * well-known "The %1 application cannot be run in Win32 mode"
message.
+ */
+ SetLastError(ERROR_CHILD_NOT_COMPLETE);
goto Cleanup;
}
@@ -3269,7 +3273,7 @@
if (hSection) NtClose(hSection);
if (hThread)
{
- /* We don't know any more details then this */
+ /* We don't know any more details than this */
NtTerminateProcess(hProcess, STATUS_UNSUCCESSFUL);
NtClose(hThread);
}