mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-14 06:45:12 +01:00
StorageAPI: Make sure to call noexcept version of CreateSubItem in GetOrCreateSubItem
This commit is contained in:
parent
3b5cc2f932
commit
702580152f
@ -85,7 +85,7 @@ std::optional<WUPSStorageSubItem> WUPSStorageSubItem::GetOrCreateSubItem(std::st
|
||||
wups_storage_item outItem = {};
|
||||
err = WUPSStorageAPI_GetSubItem(mHandle, key.data(), &outItem);
|
||||
if (err == WUPS_STORAGE_ERROR_NOT_FOUND) {
|
||||
return CreateSubItem(key);
|
||||
return CreateSubItem(key, err);
|
||||
}
|
||||
return WUPSStorageSubItem(outItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user