diff --git a/CHANGELOG.md b/CHANGELOG.md index d018a385..74d94daf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - fixed incorrect text display when changing the password of encrypted boxes or when exporting encrypted boxes [#3296](https://github.com/sandboxie-plus/Sandboxie/pull/3296) +- fixed image files not being create as sparse files diff --git a/Sandboxie/core/dll/file.c b/Sandboxie/core/dll/file.c index 6ee12b33..6fac7bd8 100644 --- a/Sandboxie/core/dll/file.c +++ b/Sandboxie/core/dll/file.c @@ -7321,6 +7321,13 @@ _FX BOOLEAN SbieDll_TranslateNtToDosPath(WCHAR *path) const FILE_DRIVE *drive; ULONG path_len, prefix_len; + if (_wcsnicmp(path, L"\\??\\", 4) == 0) { + + wmemmove(path, path + 4, wcslen(path) - 4 + 1); + + return TRUE; + } + if (! File_DrivesAndLinks_CritSec) { // if not sandboxed File_DrivesAndLinks_CritSec = Dll_Alloc(sizeof(CRITICAL_SECTION));