Commit 02e3e17b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

win32u: Give full access rights to the thread desktop.

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 b99c6756
......@@ -279,7 +279,6 @@ static void test_handles(void)
status = NtQueryObject( d1, ObjectBasicInformation, &info, sizeof(info), NULL );
ok( !status, "NtQueryObject failed, status %#lx\n", status );
todo_wine
ok( info.GrantedAccess == (STANDARD_RIGHTS_REQUIRED | DESKTOP_ALL_ACCESS),
"Got unexpected access %#lx\n", info.GrantedAccess );
......
......@@ -628,7 +628,7 @@ void winstation_init(void)
InitializeObjectAttributes( &attr, &str, OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
dir, NULL );
handle = NtUserCreateDesktopEx( &attr, NULL, NULL, 0, DESKTOP_ALL_ACCESS, 0 );
handle = NtUserCreateDesktopEx( &attr, NULL, NULL, 0, STANDARD_RIGHTS_REQUIRED | DESKTOP_ALL_ACCESS, 0 );
if (handle) NtUserSetThreadDesktop( handle );
}
NtClose( dir );
......
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