Author: sginsberg
Date: Wed Oct 22 08:24:01 2008
New Revision: 36893
URL: 
http://svn.reactos.org/svn/reactos?rev=36893&view=rev
Log:
- Fix an assertion by casting to internal structures correctly
Modified:
    trunk/reactos/ntoskrnl/ke/i386/v86vdm.c
Modified: trunk/reactos/ntoskrnl/ke/i386/v86vdm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/v86vdm.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/v86vdm.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/v86vdm.c [iso-8859-1] Wed Oct 22 08:24:01 2008
@@ -86,8 +86,8 @@
     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);