mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[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) svn path=/trunk/; revision=51464
This commit is contained in:
@@ -1555,7 +1555,15 @@ IntFixWindowCoordinates(CREATESTRUCTW* Cs, PWND ParentWindow, DWORD* dwShowMode)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user