- Fix an assertion by casting to internal structures correctly

svn path=/trunk/; revision=36893
This commit is contained in:
Stefan Ginsberg 2008-10-22 13:24:01 +00:00
parent e2192f9e89
commit f9eb539194

View file

@ -86,8 +86,8 @@ Ke386CallBios(IN ULONG Int,
KeSetSystemAffinityThread(1);
/* Make sure there's space for two IOPMs, then copy & clear the current */
//ASSERT(((PKGDTENTRY)&KeGetPcr()->GDT[KGDT_TSS / 8])->LimitLow >=
// (0x2000 + IOPM_OFFSET - 1));
ASSERT(((PKIPCR)KeGetPcr())->GDT[KGDT_TSS / 8].LimitLow >=
(0x2000 + IOPM_OFFSET - 1));
RtlCopyMemory(Ki386IopmSaveArea, &Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);
RtlZeroMemory(&Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);