1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2025-01-06 01:26:11 +00:00

Use r+b, not w+b

This commit is contained in:
Adubbz 2019-07-27 01:25:31 +10:00
parent 80d1ec57d1
commit 070e1012b8
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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);