Author: fireball Date: Wed Jun 11 07:00:09 2008 New Revision: 33931
URL: http://svn.reactos.org/svn/reactos?rev=33931&view=rev Log: - Fix build.
Modified: trunk/reactos/dll/win32/kernel32/process/procsup.c
Modified: trunk/reactos/dll/win32/kernel32/process/procsup.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process/... ============================================================================== --- trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/process/procsup.c [iso-8859-1] Wed Jun 11 07:00:09 2008 @@ -1105,15 +1105,15 @@ /* FIXME: Check if Machine Type and SubSys Version Match */
/* We don't support POSIX or anything else for now */ - if (IMAGE_SUBSYSTEM_WINDOWS_GUI != SectionImageInfo.SubsystemType && - IMAGE_SUBSYSTEM_WINDOWS_CUI != SectionImageInfo.SubsystemType) - { - DPRINT1("Invalid subsystem %d\n", SectionImageInfo.SubsystemType); + if (IMAGE_SUBSYSTEM_WINDOWS_GUI != SectionImageInfo.SubSystemType && + IMAGE_SUBSYSTEM_WINDOWS_CUI != SectionImageInfo.SubSystemType) + { + DPRINT1("Invalid subsystem %d\n", SectionImageInfo.SubSystemType); SetLastError(ERROR_BAD_EXE_FORMAT); goto Cleanup; }
- if (IMAGE_SUBSYSTEM_WINDOWS_GUI == SectionImageInfo.SubsystemType) + if (IMAGE_SUBSYSTEM_WINDOWS_GUI == SectionImageInfo.SubSystemType) { /* Do not create a console for GUI applications */ dwCreationFlags &= ~CREATE_NEW_CONSOLE; @@ -1329,7 +1329,7 @@
/* Duplicate the handles if needed */ if (!bInheritHandles && !(StartupInfo.dwFlags & STARTF_USESTDHANDLES) && - SectionImageInfo.SubsystemType == IMAGE_SUBSYSTEM_WINDOWS_CUI) + SectionImageInfo.SubSystemType == IMAGE_SUBSYSTEM_WINDOWS_CUI) { PRTL_USER_PROCESS_PARAMETERS RemoteParameters;