From 070e1012b8ba8570a505c4413fc5b7b7c0d14601 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 27 Jul 2019 01:25:31 +1000 Subject: [PATCH] Use r+b, not w+b --- stratosphere/ncm/source/impl/ncm_placeholder_accessor.cpp | 2 +- stratosphere/ncm/source/ncm_contentstorage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/ncm/source/impl/ncm_placeholder_accessor.cpp b/stratosphere/ncm/source/impl/ncm_placeholder_accessor.cpp index e495ee624..7f641eb67 100644 --- a/stratosphere/ncm/source/impl/ncm_placeholder_accessor.cpp +++ b/stratosphere/ncm/source/impl/ncm_placeholder_accessor.cpp @@ -95,7 +95,7 @@ namespace sts::ncm::impl { this->GetPlaceHolderPath(placeholder_path, placeholder_id); errno = 0; - *out_handle = fopen(placeholder_path, "w+b"); + *out_handle = fopen(placeholder_path, "r+b"); if (errno != 0) { return fsdevGetLastResult(); diff --git a/stratosphere/ncm/source/ncm_contentstorage.cpp b/stratosphere/ncm/source/ncm_contentstorage.cpp index 40734f2ab..08083a00e 100644 --- a/stratosphere/ncm/source/ncm_contentstorage.cpp +++ b/stratosphere/ncm/source/ncm_contentstorage.cpp @@ -586,7 +586,7 @@ namespace sts::ncm { this->GetContentPath(content_path, content_id); errno = 0; - f = fopen(content_path, "w+b"); + f = fopen(content_path, "r+b"); ON_SCOPE_EXIT { fclose(f);