From f9eb539194a0fadb5e2fa2baafddaea16cde6c12 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Wed, 22 Oct 2008 13:24:01 +0000 Subject: [PATCH] - Fix an assertion by casting to internal structures correctly svn path=/trunk/; revision=36893 --- reactos/ntoskrnl/ke/i386/v86vdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/v86vdm.c b/reactos/ntoskrnl/ke/i386/v86vdm.c index 71014a3dfcb..0a9a1da5e95 100644 --- a/reactos/ntoskrnl/ke/i386/v86vdm.c +++ b/reactos/ntoskrnl/ke/i386/v86vdm.c @@ -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);