aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2023-06-07 19:56:08 +0200
committerLadislav Zezula <zezula@volny.cz>2023-06-07 19:56:08 +0200
commit2eab5a3039cff3a8adc5f9510df87452ce56dd2a (patch)
tree4c9cd17bea06296ce1819a1802cece97b01d96fe /test/StormTest.cpp
parent8732011a322899a960b85b9f5be49e3e626a7c4f (diff)
Version incremented
Diffstat (limited to 'test/StormTest.cpp')
-rwxr-xr-xtest/StormTest.cpp2
1 files changed, 1 insertions, 1 deletions
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