From 2eab5a3039cff3a8adc5f9510df87452ce56dd2a Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Wed, 7 Jun 2023 19:56:08 +0200 Subject: Version incremented --- test/StormTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/StormTest.cpp') diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 249cc80..a65430d 100755 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -2655,7 +2655,7 @@ static DWORD TestOpenArchive( } // Reset error code, if the failure is expected - if((dwErrCode != ERROR_SUCCESS) && (hMpq == NULL) && (dwFlags & TFLG_WILL_FAIL)) + if((dwErrCode != ERROR_SUCCESS || hMpq == NULL) && (dwFlags & TFLG_WILL_FAIL)) SetLastError(dwErrCode = ERROR_SUCCESS); // Cleanup and exit -- cgit v1.2.3