diff --git a/src/console.c b/src/console.c index 09ac2e36d..7276b59c8 100644 --- a/src/console.c +++ b/src/console.c @@ -50,8 +50,8 @@ I_mutex con_mutex; // to avoid infinite SIGABRT recursion in the signal handler // due to poisoned locks or mach-o kernel not supporting locks in signals // or something like that. idk -# define Lock_state() if (!I_In_Exiting_Signal_Handler()) { I_LockMutex(&con_mutex); } -# define Unlock_state() if (!I_In_Exiting_Signal_Handler()) { I_UnlockMutex(con_mutex); } +# define Lock_state() if (!I_In_Exiting_Signal_Handler()) { I_lock_mutex(&con_mutex); } +# define Unlock_state() if (!I_In_Exiting_Signal_Handler()) { I_unlock_mutex(con_mutex); } #else /*HAVE_THREADS*/ # define Lock_state() # define Unlock_state() diff --git a/src/m_menu.c b/src/m_menu.c index f2b3ac1bb..79879032e 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4020,8 +4020,8 @@ I_mutex replayquerymutex; // to avoid infinite SIGABRT recursion in the signal handler // due to poisoned locks or mach-o kernel not supporting locks in signals // or something like that. idk -# define Lock_search_state() if (!I_In_Exiting_Signal_Handler()) { I_LockMutex(&replayquerymutex); } -# define Unlock_search_state() if (!I_In_Exiting_Signal_Handler()) { I_UnlockMutex(replayquerymutex); } +# define Lock_search_state() if (!I_In_Exiting_Signal_Handler()) { I_lock_mutex(&replayquerymutex); } +# define Unlock_search_state() if (!I_In_Exiting_Signal_Handler()) { I_unlock_mutex(replayquerymutex); } #else /*HAVE_THREADS*/ # define Lock_search_state() # define Unlock_search_state()