From 12ab8f77215e07fc0e505b56760536883276d2cb Mon Sep 17 00:00:00 2001 From: superp00t Date: Mon, 14 Apr 2025 05:01:29 -0400 Subject: [PATCH] fix(log): fix Windows refactor --- storm/Log.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/storm/Log.cpp b/storm/Log.cpp index ef3bed3..6655e15 100644 --- a/storm/Log.cpp +++ b/storm/Log.cpp @@ -2,6 +2,7 @@ #include "Log.hpp" #include "storm/Thread.hpp" #include "storm/Error.hpp" +#include "storm/option/Options.hpp" #include #include #include @@ -58,7 +59,7 @@ static CRITICAL_SECTION s_defaultdir_critsect; #define UNLOCK(i) LeaveCriticalSection(&s_critsect[i]) -#define DESTROYDESTROY(i) DeleteCriticalSection(&s_critsect[i]) +#define DESTROYLOCK(i) DeleteCriticalSection(&s_critsect[i]) #define INITDEFAULTDIRLOCK InitializeCriticalSection(&s_defaultdir_critsect) @@ -66,7 +67,7 @@ static CRITICAL_SECTION s_defaultdir_critsect; #define UNLOCKDEFAULTDIR LeaveCriticalSection(&s_defaultdir_critsect) -#define DESTROYDEFAULTDIRLOCK DeleteCriticalSection(&s_default_dir_critsect) +#define DESTROYDEFAULTDIRLOCK DeleteCriticalSection(&s_defaultdir_critsect) #endif