This commit is contained in:
DavidXanatos 2023-09-30 21:13:40 +02:00
parent 76fa223c49
commit 0e175eedfd
3 changed files with 23 additions and 16 deletions

View File

@ -12,12 +12,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- improved lock all boxes behavioure [#3350](https://github.com/sandboxie-plus/Sandboxie/issues/3350)
- fixed type in option name 'NoRestartOnPAC' -> 'NoRestartOnPCA'
### Fixed
- fixed issue with unmounting protected images [#3347](https://github.com/sandboxie-plus/Sandboxie/issues/3347)
- fixed Unable to turn off highlight in Sbie Messages search results [#3338](https://github.com/sandboxie-plus/Sandboxie/issues/3338)
- fixed cannot display programs installed in the sandbox via Run from Start Menu [#3334](https://github.com/sandboxie-plus/Sandboxie/issues/3334)
- fixed issue with NtQueryDirectoryObject [#3310](https://github.com/sandboxie-plus/Sandboxie/issues/3310)

View File

@ -834,7 +834,7 @@ _FX VOID Dll_Ordinal1(INJECT_DATA * inject)
int MustRestartProcess = 0;
if (Dll_ProcessFlags & SBIE_FLAG_PROCESS_IN_PCA_JOB) {
if (!SbieApi_QueryConfBool(NULL, L"NoRestartOnPAC", FALSE))
if (!SbieApi_QueryConfBool(NULL, L"NoRestartOnPCA", FALSE))
MustRestartProcess = 1;
}

View File

@ -4344,6 +4344,8 @@ _FX NTSTATUS Ipc_NtQueryDirectoryObject(
ULONG EndIndex = indexCounter + CountToGo;
for (; entry && indexCounter < EndIndex; indexCounter++) {
if (directoryInfo) {
directoryInfo->Name.Length = entry->Name.Length;
directoryInfo->Name.MaximumLength = entry->Name.MaximumLength;
directoryInfo->Name.Buffer = ptr;
@ -4357,6 +4359,7 @@ _FX NTSTATUS Ipc_NtQueryDirectoryObject(
ptr += directoryInfo->TypeName.MaximumLength / sizeof(WCHAR);
directoryInfo++;
}
entry = List_Next(entry);
}
@ -4365,9 +4368,12 @@ _FX NTSTATUS Ipc_NtQueryDirectoryObject(
// terminate listing with an empty entry
//
if (directoryInfo) {
directoryInfo->Name.Length = directoryInfo->TypeName.Length = 0;
directoryInfo->Name.MaximumLength = directoryInfo->TypeName.MaximumLength = 0;
directoryInfo->Name.Buffer = directoryInfo->TypeName.Buffer = NULL;
}
//
// set return values