Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Jan 28, 2024
1 parent 604961a commit ae54a8a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Sandboxie/core/dll/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,16 +1355,17 @@ _FX NTSTATUS File_GetName(

if(File_FindBoxPrefix(TruePath))
is_boxed_path = TRUE;
if (is_boxed_path) {

name = Dll_GetTlsNameBuffer(
TlsData, TRUE_NAME_BUFFER, (length + 1) * sizeof(WCHAR));
wmemcpy(name, TruePath, length + 1);

name = Dll_GetTlsNameBuffer(
TlsData, TRUE_NAME_BUFFER, (length + 1) * sizeof(WCHAR));
wmemcpy(name, TruePath, length + 1);
Dll_Free(TruePath);

Dll_Free(TruePath);
TruePath = name;
*OutTruePath = TruePath;

TruePath = name;
*OutTruePath = TruePath;
if (is_boxed_path) {
convert_links_again = FALSE;

goto check_sandbox_prefix;
Expand Down

0 comments on commit ae54a8a

Please sign in to comment.