mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user