Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f48a56f6 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[res] Fix the cookie index in OpenNonAsset()

Previous change incorrectly set the output cookie index,
forgetting to account for the -1 offset

Bug: 312057285
Test: manual
Change-Id: Ib4ce95a3084f7faf83ac4875184f331407a1bd50
parent 7a4bca8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ std::unique_ptr<Asset> AssetManager2::OpenNonAsset(const std::string& filename,
    std::unique_ptr<Asset> asset = assets->GetAssetsProvider()->Open(filename, mode);
    if (asset) {
      if (out_cookie != nullptr) {
        *out_cookie = i;
        *out_cookie = i - 1;
      }
      return asset;
    }