From 66e59f1ac24a2447557d6272bfbbec1078b412e3 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Wed, 11 Mar 2020 22:11:32 +1100 Subject: [PATCH] ncm: minor bugfixes --- .../include/stratosphere/ncm/ncm_install_task_data.hpp | 2 +- libraries/libstratosphere/source/ncm/ncm_install_task_data.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/ncm/ncm_install_task_data.hpp b/libraries/libstratosphere/include/stratosphere/ncm/ncm_install_task_data.hpp index ece42c6b4..12338b5f8 100644 --- a/libraries/libstratosphere/include/stratosphere/ncm/ncm_install_task_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/ncm/ncm_install_task_data.hpp @@ -24,7 +24,7 @@ namespace ams::ncm { std::unique_ptr data; size_t size; - InstallContentMeta GetReader() const { + InstallContentMetaReader GetReader() const { return InstallContentMetaReader(this->data.get(), this->size); } }; diff --git a/libraries/libstratosphere/source/ncm/ncm_install_task_data.cpp b/libraries/libstratosphere/source/ncm/ncm_install_task_data.cpp index 42b1a77f9..840c192a5 100644 --- a/libraries/libstratosphere/source/ncm/ncm_install_task_data.cpp +++ b/libraries/libstratosphere/source/ncm/ncm_install_task_data.cpp @@ -179,7 +179,7 @@ namespace ams::ncm { Result FileInstallTaskData::Write(const void *data, size_t size, s64 offset) { fs::FileHandle file; - R_TRY(fs::OpenFile(std::addressof(file), this->path, fs::OpenMode_Write | fs::OpenMode_Append)); + R_TRY(fs::OpenFile(std::addressof(file), this->path, fs::OpenMode_Write | fs::OpenMode_AllowAppend)); ON_SCOPE_EXIT { fs::CloseFile(file); }; return fs::WriteFile(file, offset, data, size, fs::WriteOption::Flush); }