From 633c3cb08639bb2e8bf6945d98d0d8fa037df024 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 May 2013 12:55:22 +0200 Subject: [PATCH] wnaspi32: Don't bother to delete critical sections at process exit. --- dlls/wnaspi32/winaspi32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wnaspi32/winaspi32.c b/dlls/wnaspi32/winaspi32.c index 342fb822b18..68bda01d7af 100644 --- a/dlls/wnaspi32/winaspi32.c +++ b/dlls/wnaspi32/winaspi32.c @@ -76,6 +76,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad) SCSI_Init(); break; case DLL_PROCESS_DETACH: + if (fImpLoad) break; DeleteCriticalSection( &ASPI_CritSection ); break; }