diff options
Diffstat (limited to 'test/StormTest.cpp')
-rwxr-xr-x | test/StormTest.cpp | 2 |
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
|