This commit is contained in:
DavidXanatos 2022-06-29 21:23:18 +02:00
parent face22b3dc
commit bbafcc8d1e
2 changed files with 27 additions and 10 deletions

View File

@ -4,6 +4,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [1.2.1 / 5.57.1] - 2022-06-??
### Fixed
- fixed dip issue on windows 7
- fixed issue with software compatibility tab
- fixed issue with OpenKeyPath's introduced in build 1.1.1 [#2006](https://github.com/sandboxie-plus/Sandboxie/issues/2006)
## [1.2.0 / 5.57.0] - 2022-06-28
### Added

View File

@ -1329,13 +1329,17 @@ _FX NTSTATUS Key_NtCreateKeyImpl(
// So it is not possible to use TruePath but we can use the original handle relative ObjectAttributes here instead.
//
//RtlInitUnicodeString(&objname, TruePath);
//objattrs.SecurityDescriptor = ObjectAttributes->SecurityDescriptor;
BOOLEAN IsAKey = _wcsnicmp(TruePath, L"\\REGISTRY\\A\\", 12) == 0;
RtlInitUnicodeString(&objname, TruePath);
objattrs.SecurityDescriptor = ObjectAttributes->SecurityDescriptor;
if (CreateOptions == tzuk) {
//status = __sys_NtOpenKey(KeyHandle, DesiredAccess, &objattrs);
status = __sys_NtOpenKey(KeyHandle, DesiredAccess, ObjectAttributes);
if(IsAKey)
status = __sys_NtOpenKey(KeyHandle, DesiredAccess, ObjectAttributes);
else
status = __sys_NtOpenKey(KeyHandle, DesiredAccess, &objattrs);
if (status == STATUS_ACCESS_DENIED &&
DesiredAccess == MAXIMUM_ALLOWED) {
@ -1346,12 +1350,14 @@ _FX NTSTATUS Key_NtCreateKeyImpl(
} else {
//status = __sys_NtCreateKey(
// KeyHandle, DesiredAccess, &objattrs,
// TitleIndex, Class, CreateOptions, Disposition);
status = __sys_NtCreateKey(
KeyHandle, DesiredAccess, ObjectAttributes,
TitleIndex, Class, CreateOptions, Disposition);
if(IsAKey)
status = __sys_NtCreateKey(
KeyHandle, DesiredAccess, ObjectAttributes,
TitleIndex, Class, CreateOptions, Disposition);
else
status = __sys_NtCreateKey(
KeyHandle, DesiredAccess, &objattrs,
TitleIndex, Class, CreateOptions, Disposition);
if (status == STATUS_ACCESS_DENIED &&
DesiredAccess == MAXIMUM_ALLOWED) {