mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2026-06-05 19:56:57 +00:00
Update pgl_srv_shell_host_utils.cpp
This commit is contained in:
parent
f3f1fa46ed
commit
2694f31eb3
@ -77,7 +77,7 @@ namespace ams::pgl::srv {
|
|||||||
private:
|
private:
|
||||||
char m_content_path[fs::EntryNameLengthMax] = {};
|
char m_content_path[fs::EntryNameLengthMax] = {};
|
||||||
ExtensionType m_extension_type = ExtensionType::None;
|
ExtensionType m_extension_type = ExtensionType::None;
|
||||||
char m_mount_name[fs::MountNameLengthMax] = {};
|
char m_mount_name[fs::MountNameLengthMax+1] = {};
|
||||||
bool m_is_mounted = false;
|
bool m_is_mounted = false;
|
||||||
ncm::AutoBuffer m_content_meta_buffer;
|
ncm::AutoBuffer m_content_meta_buffer;
|
||||||
ncm::ProgramId m_program_id = ncm::InvalidProgramId;
|
ncm::ProgramId m_program_id = ncm::InvalidProgramId;
|
||||||
@ -101,7 +101,7 @@ namespace ams::pgl::srv {
|
|||||||
R_TRY(this->SetExtensionType());
|
R_TRY(this->SetExtensionType());
|
||||||
|
|
||||||
/* Copy in mount name. */
|
/* Copy in mount name. */
|
||||||
R_UNLESS(strlen(mount) <= sizeof(m_mount_name), pgl::ResultBufferNotEnough());
|
R_UNLESS(strlen(mount) <= sizeof(m_mount_name) - 1, pgl::ResultBufferNotEnough());
|
||||||
std::strcpy(m_mount_name, mount);
|
std::strcpy(m_mount_name, mount);
|
||||||
|
|
||||||
/* Mount the package. */
|
/* Mount the package. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user