On 2019-03-28 21:47, Derek Lesho wrote:
@@ -3448,7 +3449,10 @@ void WINAPI
ExReleaseResourceForThreadLite( PERESOURCE resource, ERESOURCE_THREA
*/
void WINAPI KeEnterCriticalRegion(void)
{
- FIXME(": stub\n");
+ PETHREAD thread = (PETHREAD) KeGetCurrentThread();
+
+ /* FIXME: actually disable certain APCs */
+ thread->critical_region = TRUE;
}
Critical regions can be nested, so you'd need a counter instead of a
boolean.