Make the address space mutex unsafe, because sometimes it is acquired at
APC_LEVEL. This makes
bugchecks...'work'...again (how ironic).
Modified:
trunk/reactos/ntoskrnl/mm/aspace.c
_____
Modified: trunk/reactos/ntoskrnl/mm/aspace.c
--- trunk/reactos/ntoskrnl/mm/aspace.c 2005-11-19 23:07:32 UTC (rev
19354)
+++ trunk/reactos/ntoskrnl/mm/aspace.c 2005-11-20 03:16:26 UTC (rev
19355)
@@ -30,7 +30,7 @@
{
return;
}
- ExAcquireFastMutex(&AddressSpace->Lock);
+ ExEnterCriticalRegionAndAcquireFastMutexUnsafe(&AddressSpace->Lock);
}
VOID
@@ -44,7 +44,7 @@
{
return;
}
- ExReleaseFastMutex(&AddressSpace->Lock);
+ ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(&AddressSpace->Lock);
}
VOID