From 01674b22e70535ff21aadf8ac69a1d11ee1e9281 Mon Sep 17 00:00:00 2001 From: ergo720 Date: Mon, 23 Jul 2018 12:00:06 +0200 Subject: [PATCH] Amend previous commit --- src/CxbxKrnl/CxbxKrnl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CxbxKrnl/CxbxKrnl.cpp b/src/CxbxKrnl/CxbxKrnl.cpp index 2d07028b1..be222041f 100644 --- a/src/CxbxKrnl/CxbxKrnl.cpp +++ b/src/CxbxKrnl/CxbxKrnl.cpp @@ -671,9 +671,11 @@ static unsigned int WINAPI CxbxKrnlInterruptThread(PVOID param) InitSoftwareInterrupts(); #endif - while (g_bEnableAllInterrupts) { - TriggerPendingConnectedInterrupts(); - Sleep(1); + while (true) { + if (g_bEnableAllInterrupts) { + TriggerPendingConnectedInterrupts(); + Sleep(1); + } } return 0;