From 5ec739bf2eb14d9c5ff4e49b77bc7df86b5e4ea7 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 11 Apr 2020 22:29:41 +0200 Subject: [PATCH] [RTL] Change comment to indicate a hack --- sdk/lib/rtl/critical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/rtl/critical.c b/sdk/lib/rtl/critical.c index 4678230e57b..2e35b7029da 100644 --- a/sdk/lib/rtl/critical.c +++ b/sdk/lib/rtl/critical.c @@ -369,7 +369,7 @@ RtlpFreeDebugInfo(PRTL_CRITICAL_SECTION_DEBUG DebugInfo) } else { - /* Wine stores a section name pointer in the Flags member */ + /* HACK for Wine: stores a section name pointer in the Flags member */ DPRINT("Assuming static: %p inside Process: %p\n", DebugInfo, NtCurrentTeb()->ClientId.UniqueProcess); @@ -415,7 +415,7 @@ RtlDeleteCriticalSection(PRTL_CRITICAL_SECTION CriticalSection) /* Remove it from the list */ RemoveEntryList(&CriticalSection->DebugInfo->ProcessLocksList); #if 0 - /* We need to preserve Flags for RtlpFreeDebugInfo */ + /* HACK for Wine: We need to preserve Flags for RtlpFreeDebugInfo */ RtlZeroMemory(CriticalSection->DebugInfo, sizeof(RTL_CRITICAL_SECTION_DEBUG)); #endif }