Author: jimtabor
Date: Sat May 28 00:32:15 2011
New Revision: 51972
URL:
http://svn.reactos.org/svn/reactos?rev=51972&view=rev
Log:
- No need to do extra work when the process starts.
Modified:
trunk/reactos/subsystems/win32/win32k/main/dllmain.c
Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ma…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Sat May 28 00:32:15
2011
@@ -64,7 +64,6 @@
SIZE_T ViewSize = 0;
LARGE_INTEGER Offset;
PVOID UserBase = NULL;
- BOOL Connected;
PRTL_USER_PROCESS_PARAMETERS pParams = NULL;
NTSTATUS Status;
extern PSECTION_OBJECT GlobalUserHeapSection;
@@ -117,14 +116,10 @@
Win32Process->peProcess = Process;
/* setup process flags */
- Win32Process->W32PF_flags = 0;
-
- Connected = !(Win32Process->W32PF_flags & W32PF_THREADCONNECTED);
- Win32Process->W32PF_flags |= W32PF_THREADCONNECTED;
+ Win32Process->W32PF_flags = W32PF_THREADCONNECTED;
if ( pParams &&
- pParams->WindowFlags & STARTF_SCRNSAVER &&
- Connected)
+ pParams->WindowFlags & STARTF_SCRNSAVER )
{
ppiScrnSaver = Win32Process;
Win32Process->W32PF_flags |= W32PF_SCREENSAVER;