Commit 047b4d0e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

win32u: Give full access rights to the process window station.

Fix CEF applications crash at start without --no-sandbox option. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53981Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> (cherry picked from commit b99c6756)
parent 4748dbfb
...@@ -137,7 +137,6 @@ static void test_handles(void) ...@@ -137,7 +137,6 @@ static void test_handles(void)
status = NtQueryObject( w1, ObjectBasicInformation, &info, sizeof(info), NULL ); status = NtQueryObject( w1, ObjectBasicInformation, &info, sizeof(info), NULL );
ok( !status, "NtQueryObject failed, status %#lx\n", status ); ok( !status, "NtQueryObject failed, status %#lx\n", status );
todo_wine
ok( info.GrantedAccess == (STANDARD_RIGHTS_REQUIRED | WINSTA_ALL_ACCESS), ok( info.GrantedAccess == (STANDARD_RIGHTS_REQUIRED | WINSTA_ALL_ACCESS),
"Got unexpected access %#lx\n", info.GrantedAccess ); "Got unexpected access %#lx\n", info.GrantedAccess );
......
...@@ -604,7 +604,7 @@ void winstation_init(void) ...@@ -604,7 +604,7 @@ void winstation_init(void)
InitializeObjectAttributes( &attr, &str, OBJ_CASE_INSENSITIVE | OBJ_OPENIF, InitializeObjectAttributes( &attr, &str, OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
dir, NULL ); dir, NULL );
handle = NtUserCreateWindowStation( &attr, WINSTA_ALL_ACCESS, 0, 0, 0, 0, 0 ); handle = NtUserCreateWindowStation( &attr, STANDARD_RIGHTS_REQUIRED | WINSTA_ALL_ACCESS, 0, 0, 0, 0, 0 );
if (handle) if (handle)
{ {
NtUserSetProcessWindowStation( handle ); NtUserSetProcessWindowStation( handle );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment