This commit is contained in:
DavidXanatos 2023-07-25 08:55:14 +02:00
parent 9c2bfb7abb
commit 95c8e01daa
2 changed files with 5 additions and 4 deletions

View File

@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed issue with cross renaming of directories - fixed issue with cross renaming of directories
- fixed issue with auto scroll not working - fixed issue with auto scroll not working
- fixed issue with link argumetn handling [#2969](https://github.com/sandboxie-plus/Sandboxie/issues/2969) - fixed issue with link argumetn handling [#2969](https://github.com/sandboxie-plus/Sandboxie/issues/2969)
- fixed IPC issue introduced in 1.10.1 [#3132](https://github.com/sandboxie-plus/Sandboxie/issues/3132) [#3134](https://github.com/sandboxie-plus/Sandboxie/issues/3134)

View File

@ -750,7 +750,7 @@ _FX NTSTATUS Ipc_GetName(
if (OutIsBoxedPath) if (OutIsBoxedPath)
*OutIsBoxedPath = FALSE; *OutIsBoxedPath = FALSE;
if (ObjectName) { if (ObjectName && ObjectName != (UNICODE_STRING*)-1) {
objname_len = ObjectName->Length & ~1; objname_len = ObjectName->Length & ~1;
objname_buf = ObjectName->Buffer; objname_buf = ObjectName->Buffer;
@ -784,7 +784,7 @@ _FX NTSTATUS Ipc_GetName(
name = Dll_GetTlsNameBuffer( name = Dll_GetTlsNameBuffer(
TlsData, TRUE_NAME_BUFFER, length + objname_len); TlsData, TRUE_NAME_BUFFER, length + objname_len);
/*if ((! objname_len) || (! *objname_buf)) { if (((! objname_len) || (! *objname_buf)) && ObjectName != (UNICODE_STRING*)-1) {
// //
// an object handle was specified, but the object name is an // an object handle was specified, but the object name is an
@ -800,7 +800,7 @@ _FX NTSTATUS Ipc_GetName(
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
}*/ }
if (objname_len && *objname_buf == L'\\') { if (objname_len && *objname_buf == L'\\') {
@ -4287,7 +4287,7 @@ _FX NTSTATUS Ipc_NtQueryDirectoryObject(
WCHAR *TruePath; WCHAR *TruePath;
WCHAR *CopyPath; WCHAR *CopyPath;
NTSTATUS status = Ipc_GetName(DirectoryHandle, NULL, &TruePath, &CopyPath, NULL); NTSTATUS status = Ipc_GetName(DirectoryHandle, (UNICODE_STRING*)-1, &TruePath, &CopyPath, NULL);
if (!NT_SUCCESS(status)) if (!NT_SUCCESS(status))
return status; return status;