From 774d1deeb629d95b44167e8781feba31a1925d99 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:50:11 +0200 Subject: [PATCH] Update file_link.c --- Sandboxie/core/dll/file_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/dll/file_link.c b/Sandboxie/core/dll/file_link.c index e645bbcf95..e2d13cae9c 100644 --- a/Sandboxie/core/dll/file_link.c +++ b/Sandboxie/core/dll/file_link.c @@ -1076,7 +1076,7 @@ _FX FILE_LINK *File_AddTempLink(WCHAR *path) if (_wcsnicmp(input_str, L"\\??\\Volume{", 11) == 0) input_str = File_TranslateGuidToNtPath2(SubstituteNameBuffer, SubstituteNameLength / sizeof(WCHAR)); else if (_wcsnicmp(input_str, File_BQQB, 4) == 0) - input_str = File_TranslateDosToNtPath2(SubstituteNameBuffer + 4, SubstituteNameLength / sizeof(WCHAR)); + input_str = File_TranslateDosToNtPath2(SubstituteNameBuffer + 4, (SubstituteNameLength / sizeof(WCHAR)) - 4); } if (input_str) {