This commit is contained in:
DavidXanatos 2022-10-16 09:26:23 +02:00
parent 21e3127372
commit 3d58fe8d3f
2 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- reworked API compatibility check
- Break out process is now available for all users

View File

@ -533,14 +533,14 @@ MSG_HEADER *ProcessServer::RunSandboxedHandler(MSG_HEADER *msg)
#ifndef DRV_BREAKOUT
if (CallerInSandbox && wcscmp(req->boxname, L"*UNBOXED*") == 0 && *cmd == L'\"') {
ULONG flags = 0;
if (!NT_SUCCESS(SbieApi_Call(API_QUERY_DRIVER_INFO, 2, 0, (ULONG_PTR)&flags)) || (flags & SBIE_FEATURE_FLAG_CERTIFIED) == 0) {
ULONG SessionId = PipeServer::GetCallerSessionId();
SbieApi_LogEx(SessionId, 6004, L"%S", boxname);
lvl = 0x66;
err = ERROR_NOT_SUPPORTED;
goto end;
}
//ULONG flags = 0;
//if (!NT_SUCCESS(SbieApi_Call(API_QUERY_DRIVER_INFO, 2, 0, (ULONG_PTR)&flags)) || (flags & SBIE_FEATURE_FLAG_CERTIFIED) == 0) {
// ULONG SessionId = PipeServer::GetCallerSessionId();
// SbieApi_LogEx(SessionId, 6004, L"%S", boxname);
// lvl = 0x66;
// err = ERROR_NOT_SUPPORTED;
// goto end;
//}
WCHAR* lpApplicationName = cmd + 1;
WCHAR* ptr = wcschr(lpApplicationName, L'\"');