Author: greatlrd Date: Wed May 10 18:50:28 2006 New Revision: 21878
URL: http://svn.reactos.ru/svn/reactos?rev=21878&view=rev Log: delay the kernel tree for let it it cache up with some work before continue excute in IntPrepareDriver. base on hpoussin hack in bug 1321, I have reboot vmware lest 20-30 times and I do not longer getting bsod I did before see lest one bsod in IntPrepareDriver after first attamt to boot to gui mode, then I need reboot reactos two times, to get it working. Lest it take care of my problem in vmware
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/subsystems/win32/win32k/obje... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Wed May 10 18:50:28 2006 @@ -481,6 +481,18 @@ 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++) {