mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-07 10:02:14 +02:00
Use r+b, not w+b
This commit is contained in:
parent
2e8f90fa42
commit
c1b48289df
@ -95,7 +95,7 @@ namespace sts::ncm::impl {
|
|||||||
|
|
||||||
this->GetPlaceHolderPath(placeholder_path, placeholder_id);
|
this->GetPlaceHolderPath(placeholder_path, placeholder_id);
|
||||||
errno = 0;
|
errno = 0;
|
||||||
*out_handle = fopen(placeholder_path, "w+b");
|
*out_handle = fopen(placeholder_path, "r+b");
|
||||||
|
|
||||||
if (errno != 0) {
|
if (errno != 0) {
|
||||||
return fsdevGetLastResult();
|
return fsdevGetLastResult();
|
||||||
|
@ -586,7 +586,7 @@ namespace sts::ncm {
|
|||||||
this->GetContentPath(content_path, content_id);
|
this->GetContentPath(content_path, content_id);
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
f = fopen(content_path, "w+b");
|
f = fopen(content_path, "r+b");
|
||||||
|
|
||||||
ON_SCOPE_EXIT {
|
ON_SCOPE_EXIT {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Loading…
Reference in New Issue
Block a user