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:
parent
80d1ec57d1
commit
070e1012b8
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue