mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +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:
parent
7ed79f5ff3
commit
e29b0d8b1f
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue