mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlCore: Fixed TryEnteryGuiMutex in the recursive case (already locked)
This commit is contained in:
parent
a5b6b2af74
commit
afe86a0ff2
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ void EnterGuiMutex(int n)
|
|||
|
||||
bool TryEnterGuiMutex()
|
||||
{
|
||||
if(sGLockLevel == 0 && sGLock.TryEnter()) {
|
||||
if(sGLockLevel || sGLock.TryEnter()) {
|
||||
sGLockLevel++;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue