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 

svn path=/trunk/; revision=21878
This commit is contained in:
Magnus Olsen
2006-05-10 14:50:28 +00:00
parent d13126b46f
commit 3f59281d1a
@@ -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++)
{