Commit b99c6756 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>
parent 44b92e57
......@@ -137,7 +137,6 @@ static void test_handles(void)
status = NtQueryObject( w1, ObjectBasicInformation, &info, sizeof(info), NULL );
ok( !status, "NtQueryObject failed, status %#lx\n", status );
todo_wine
ok( info.GrantedAccess == (STANDARD_RIGHTS_REQUIRED | WINSTA_ALL_ACCESS),
"Got unexpected access %#lx\n", info.GrantedAccess );
......
......@@ -604,7 +604,7 @@ void winstation_init(void)
InitializeObjectAttributes( &attr, &str, OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
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)
{
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