COMMON: Fix logic error in macresman

This commit is contained in:
Vladimir Serbinenko 2023-05-20 03:30:10 +02:00
parent 5c8ac251d7
commit 9874d200c8

View File

@ -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);