diff --git a/CHANGELOG.md b/CHANGELOG.md index aff5a858..9842d075 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed "The directory name is invalid" when starting a process in a encrypted private box [#3475](https://github.com/sandboxie-plus/Sandboxie/issues/3475) - fixed symbolic links created inside a sandbox not working properly [#3181](https://github.com/sandboxie-plus/Sandboxie/issues/3181) - fixed issue with drives mounted to multiple fodlers or a drive lettet and a folder +- fixed issue with file paths when using boxes a with relocated root (e.g. to an ImDisk volume) diff --git a/Sandboxie/core/dll/file.c b/Sandboxie/core/dll/file.c index 57f623e3..e1fa402b 100644 --- a/Sandboxie/core/dll/file.c +++ b/Sandboxie/core/dll/file.c @@ -7418,7 +7418,7 @@ _FX WCHAR *File_GetTruePathForBoxedPath(const WCHAR *Path, BOOLEAN IsDosPath) if (NtPath) { - if (_wcsnicmp(NtPath, Dll_BoxFilePath, Dll_BoxFilePathLen) == 0) { + if (_wcsnicmp(NtPath, Dll_BoxFilePath, Dll_BoxFilePathLen) == 0 || (Dll_BoxFileRawPath && _wcsnicmp(NtPath, Dll_BoxFileRawPath, Dll_BoxFileRawPathLen) == 0)) { NTSTATUS status; UNICODE_STRING uni;