mirror of
https://github.com/reactos/reactos.git
synced 2024-10-08 02:13:56 +00:00
- Fix an assertion by casting to internal structures correctly
svn path=/trunk/; revision=36893
This commit is contained in:
parent
e2192f9e89
commit
f9eb539194
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue