[Scummvm-git-logs] scummvm master -> 9874d200c8bdb9da4f3c49baf8f2eefef675fe3d

phcoder noreply at scummvm.org
Sat May 20 12:32:58 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9874d200c8 COMMON: Fix logic error in macresman


Commit: 9874d200c8bdb9da4f3c49baf8f2eefef675fe3d
    https://github.com/scummvm/scummvm/commit/9874d200c8bdb9da4f3c49baf8f2eefef675fe3d
Author: Vladimir Serbinenko (phcoder at gmail.com)
Date: 2023-05-20T14:32:53+02:00

Commit Message:
COMMON: Fix logic error in macresman

Changed paths:
    common/macresman.cpp


diff --git a/common/macresman.cpp b/common/macresman.cpp
index ae8c3250875..801817ae581 100644
--- a/common/macresman.cpp
+++ b/common/macresman.cpp
@@ -314,7 +314,7 @@ SeekableReadStream * MacResManager::openFileOrDataFork(const Path &fileName) {
 }
 
 SeekableReadStream * MacResManager::openDataForkFromMacBinary(SeekableReadStream *inStream, DisposeAfterUse::Flag disposeAfterUse) {
-	if (!inStream && !isMacBinary(*inStream)) {
+	if (!inStream || !isMacBinary(*inStream)) {
 		return nullptr;
 	}
 	inStream->seek(MBI_DFLEN);




More information about the Scummvm-git-logs mailing list