AssetManager: fix Asset XML file not found error on 32bit

The xmlBlock variable is now a pointer with the recent changes.
So, we shouldn't compare it with >= 0.

The error went unnoticed, because it was only tested on 64bit until now
This commit is contained in:
Julian Winkler
2024-05-26 16:14:04 +02:00
parent ff3c103377
commit 71717edc58

View File

@@ -472,7 +472,7 @@ public final class AssetManager {
throw new RuntimeException("Assetmanager has been closed"); throw new RuntimeException("Assetmanager has been closed");
} }
xmlBlock = openXmlAssetNative(cookie, fileName); xmlBlock = openXmlAssetNative(cookie, fileName);
if (xmlBlock >= 0) { if (xmlBlock != 0) {
XmlBlock res = new XmlBlock(this, xmlBlock); XmlBlock res = new XmlBlock(this, xmlBlock);
incRefsLocked(res.hashCode()); incRefsLocked(res.hashCode());
return res; return res;