From 4d0585cdb49964d54313e1fa2f10d37aedf77dac Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 27 Nov 2023 11:45:15 +0100 Subject: [PATCH] Fix resetting the iosuhaxHandle in Mocha_DeInitLibrary --- source/utils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/utils.cpp b/source/utils.cpp index 34b2fb1..c848d3e 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -88,6 +88,7 @@ MochaUtilsStatus Mocha_DeInitLibrary() { if (iosuhaxHandle >= 0) { IOS_Close(iosuhaxHandle); + iosuhaxHandle = -1; } return MOCHA_RESULT_SUCCESS;