diff --git a/reactos/subsystems/win32/win32k/objects/dc.c b/reactos/subsystems/win32/win32k/objects/dc.c index afb947d15d2..2442265995f 100644 --- a/reactos/subsystems/win32/win32k/objects/dc.c +++ b/reactos/subsystems/win32/win32k/objects/dc.c @@ -481,6 +481,18 @@ IntPrepareDriver() BOOL GotDriver; BOOL DoDefault; ULONG DisplayNumber; + LARGE_INTEGER TimeOut; + + /* We need delay the tree */ + TimeOut.QuadPart = -10000000; + KeDelayExecutionThread(KernelMode, FALSE, &TimeOut); + + if (PrimarySurface.PreparedDriver) + { + DPRINT1("time out!\n"); + KEBUGCHECK(0); + } + for (DisplayNumber = 0; ; DisplayNumber++) {