Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ce9fc213
Commit
ce9fc213
authored
Oct 13, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move NtUserSetThreadDesktop implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
915fb568
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
10 deletions
+32
-10
user_main.c
dlls/user32/user_main.c
+1
-1
winstation.c
dlls/user32/winstation.c
+1
-7
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
winstation.c
dlls/win32u/winstation.c
+18
-0
syscall.h
dlls/wow64win/syscall.h
+2
-1
user.c
dlls/wow64win/user.c
+7
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/user_main.c
View file @
ce9fc213
...
...
@@ -311,7 +311,7 @@ static void winstation_init(void)
{
handle
=
CreateDesktopW
(
desktop
?
desktop
:
get_default_desktop
(),
NULL
,
NULL
,
0
,
DESKTOP_ALL_ACCESS
,
NULL
);
if
(
handle
)
SetThreadDesktop
(
handle
);
if
(
handle
)
NtUser
SetThreadDesktop
(
handle
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
...
dlls/user32/winstation.c
View file @
ce9fc213
...
...
@@ -362,14 +362,8 @@ HDESK WINAPI OpenDesktopW( LPCWSTR name, DWORD flags, BOOL inherit, ACCESS_MASK
*/
BOOL
WINAPI
SetThreadDesktop
(
HDESK
handle
)
{
BOOL
ret
;
BOOL
ret
=
NtUserSetThreadDesktop
(
handle
)
;
SERVER_START_REQ
(
set_thread_desktop
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
if
(
ret
)
/* reset the desktop windows */
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
...
...
dlls/win32u/syscall.c
View file @
ce9fc213
...
...
@@ -99,6 +99,7 @@ static void * const syscalls[] =
NtUserGetProcessWindowStation
,
NtUserGetThreadDesktop
,
NtUserSetProcessWindowStation
,
NtUserSetThreadDesktop
,
};
static
BYTE
arguments
[
ARRAY_SIZE
(
syscalls
)];
...
...
dlls/win32u/win32u.spec
View file @
ce9fc213
...
...
@@ -1232,7 +1232,7 @@
@ stub NtUserSetSystemMenu
@ stub NtUserSetSystemTimer
@ stub NtUserSetTargetForResourceBrokering
@ st
ub NtUserSetThreadDesktop
@ st
dcall -syscall NtUserSetThreadDesktop(long)
@ stub NtUserSetThreadInputBlocked
@ stub NtUserSetThreadLayoutHandles
@ stub NtUserSetThreadState
...
...
dlls/win32u/winstation.c
View file @
ce9fc213
...
...
@@ -106,3 +106,21 @@ HDESK WINAPI NtUserGetThreadDesktop( DWORD thread )
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
* NtUserSetThreadDesktop (win32u.@)
*/
BOOL
WINAPI
NtUserSetThreadDesktop
(
HDESK
handle
)
{
BOOL
ret
;
SERVER_START_REQ
(
set_thread_desktop
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
/* FIXME: reset uset thread info */
return
ret
;
}
dlls/wow64win/syscall.h
View file @
ce9fc213
...
...
@@ -85,6 +85,7 @@
SYSCALL_ENTRY( NtUserCloseWindowStation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
SYSCALL_ENTRY( NtUserSetProcessWindowStation )
SYSCALL_ENTRY( NtUserSetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserSetThreadDesktop )
#endif
/* __WOW64WIN_SYSCALL_H */
dlls/wow64win/user.c
View file @
ce9fc213
...
...
@@ -59,3 +59,10 @@ NTSTATUS WINAPI wow64_NtUserGetThreadDesktop( UINT *args )
return
HandleToUlong
(
NtUserGetThreadDesktop
(
thread
));
}
NTSTATUS
WINAPI
wow64_NtUserSetThreadDesktop
(
UINT
*
args
)
{
HDESK
handle
=
get_handle
(
&
args
);
return
NtUserSetThreadDesktop
(
handle
);
}
include/ntuser.h
View file @
ce9fc213
...
...
@@ -27,5 +27,6 @@ BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle );
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
);
HDESK
WINAPI
NtUserGetThreadDesktop
(
DWORD
thread
);
BOOL
WINAPI
NtUserSetProcessWindowStation
(
HWINSTA
handle
);
BOOL
WINAPI
NtUserSetThreadDesktop
(
HDESK
handle
);
#endif
/* _NTUSER_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment