From 5d00ac3d02cb08b006059ea1d24f59828f430ed1 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 15 Oct 2020 00:17:54 +0200 Subject: [PATCH] clean up dx_reinit --- Source/dx.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/dx.cpp b/Source/dx.cpp index 39cd0e217..859d962b8 100644 --- a/Source/dx.cpp +++ b/Source/dx.cpp @@ -279,9 +279,8 @@ void dx_reinit() dx_init(ghMainWnd); - while (lockCount != 0) { + while (lockCount-- != 0) { lock_buf_priv(); - lockCount--; } sgMemCrit.Leave();