diff --git a/Include/Aurora/IO/FS/Hook/FSPlatform.hpp b/Include/Aurora/IO/FS/Hook/FSPlatform.hpp index 1f9eede2..4727cb91 100644 --- a/Include/Aurora/IO/FS/Hook/FSPlatform.hpp +++ b/Include/Aurora/IO/FS/Hook/FSPlatform.hpp @@ -21,6 +21,7 @@ namespace Aurora::IO::FS AuOptional * pOpteAdvisoryLevel {}; AuOptional * pOptbLockEntireFile {}; AuIO::IIOHandle * pHandle {}; + AuString stringStore; }; struct IPlatformFS diff --git a/Source/IO/FS/FSMemoryMappedFile.cpp b/Source/IO/FS/FSMemoryMappedFile.cpp index 442ed168..54af98b8 100644 --- a/Source/IO/FS/FSMemoryMappedFile.cpp +++ b/Source/IO/FS/FSMemoryMappedFile.cpp @@ -339,14 +339,13 @@ namespace Aurora::IO::FS AuOptional optbLockEntireFile) { bool bHooked {}; + NamedMapRequest req; AuROString path2 { path }; auto pReturn = _new MemoryMappedFile(); SysCheckNotNullMemory(pReturn, {}); { - NamedMapRequest req; - req.pPath = &path2; req.pOpteMode = &opteMode; req.pOptuFileMapOffset = &optuFileMapOffset; diff --git a/Source/Process/AuProcessSectionView.NT.cpp b/Source/Process/AuProcessSectionView.NT.cpp index bf26d279..d029e257 100644 --- a/Source/Process/AuProcessSectionView.NT.cpp +++ b/Source/Process/AuProcessSectionView.NT.cpp @@ -41,6 +41,7 @@ namespace Aurora::Process AuFS::EFileOpenMode mode, AuFS::EFileAdvisoryLockLevel sectionLock) { + AuFS::NamedMapRequest req; AuROString path2 { str }; bool bHooked {}; @@ -52,8 +53,6 @@ namespace Aurora::Process } { - AuFS::NamedMapRequest req; - AuOptional optOffset = uOffset; AuOptional optLength = uLength; AuOptional opteMode = mode; diff --git a/Source/Process/AuProcessSectionView.Unix.cpp b/Source/Process/AuProcessSectionView.Unix.cpp index f7b75b59..59782b53 100644 --- a/Source/Process/AuProcessSectionView.Unix.cpp +++ b/Source/Process/AuProcessSectionView.Unix.cpp @@ -144,6 +144,7 @@ namespace Aurora::Process Aurora::IO::FS::EFileOpenMode mode, Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock) { + AuFS::NamedMapRequest req; AuROString path2 { str }; bool bHooked {}; @@ -155,8 +156,6 @@ namespace Aurora::Process } { - AuFS::NamedMapRequest req; - AuOptional optOffset = uOffset; AuOptional optLength = uLength; AuOptional opteMode = mode; diff --git a/Source/Process/AuProcessSectionViewReserved.NT.cpp b/Source/Process/AuProcessSectionViewReserved.NT.cpp index c80bf259..dc343c75 100644 --- a/Source/Process/AuProcessSectionViewReserved.NT.cpp +++ b/Source/Process/AuProcessSectionViewReserved.NT.cpp @@ -311,6 +311,7 @@ namespace Aurora::Process Aurora::IO::FS::EFileOpenMode mode, Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock) { + AuFS::NamedMapRequest req; AuROString path2 { str }; bool bHooked {}; @@ -322,8 +323,6 @@ namespace Aurora::Process } { - AuFS::NamedMapRequest req; - AuOptional optOffset = uOffset ; AuOptional optLength = uLength ; AuOptional opteMode = mode ; diff --git a/Source/Process/AuProcessSectionViewReserved.Unix.cpp b/Source/Process/AuProcessSectionViewReserved.Unix.cpp index ce95c0fb..d010b0c6 100644 --- a/Source/Process/AuProcessSectionViewReserved.Unix.cpp +++ b/Source/Process/AuProcessSectionViewReserved.Unix.cpp @@ -176,6 +176,7 @@ namespace Aurora::Process Aurora::IO::FS::EFileOpenMode mode, Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock) { + AuFS::NamedMapRequest req; AuROString path2 { str }; bool bHooked {}; @@ -187,8 +188,6 @@ namespace Aurora::Process } { - AuFS::NamedMapRequest req; - AuOptional optOffset = uOffset; AuOptional optLength = uLength; AuOptional opteMode = mode;