Author: jimtabor
Date: Wed Apr 27 23:09:45 2011
New Revision: 51468
URL: http://svn.reactos.org/svn/reactos?rev=51468&view=rev
Log:
[Win32k]
- Fix KsStudios actions with Hooks.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/defwnd.c [iso-8859-1] Wed Apr 27 23:09:45 2011
@@ -118,8 +118,8 @@
break;
default:
- UNIMPLEMENTED;
- break;
+ // We do not support anything else here so we should return normal even when sending a hook.
+ return 0;
}
return(Hook ? 1 : 0); // Don't call us again from user space.
Author: gadamopoulos
Date: Wed Apr 27 12:33:16 2011
New Revision: 51464
URL: http://svn.reactos.org/svn/reactos?rev=51464&view=rev
Log:
[win32k]
-Fix a case when a window is created and we don't have a monitor created yet. (This can happen when we may attempt to use gui on demand)
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Wed Apr 27 12:33:16 2011
@@ -1555,7 +1555,15 @@
PRTL_USER_PROCESS_PARAMETERS ProcessParams;
pMonitor = IntGetPrimaryMonitor();
- ASSERT(pMonitor);
+
+ /* Check if we don't have a monitor attached yet */
+ if(pMonitor == NULL)
+ {
+ Cs->x = Cs->y = 0;
+ Cs->cx = 800;
+ Cs->cy = 600;
+ return;
+ }
ProcessParams = PsGetCurrentProcess()->Peb->ProcessParameters;