mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 07:12:59 +00:00
[WIN32SS:NTUSER] Use the 2nd parameter of NtUserGetThreadDesktop() as fallback. (#1065)
- The 2nd parameter is already passed in user-mode by GetThreadDesktop(). It is then used by NtUserGetThreadDesktop() as a fallback for console threads. - Lookup and validate the thread by using the IntTID2PTI() helper. - Don't reference the desktop with too many access rights. - Get rid of the old-school DECLARE_RETURN() & co. macros. Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
This commit is contained in:
parent
23ad2173f2
commit
458a26ab76
3 changed files with 76 additions and 46 deletions
|
@ -2439,7 +2439,7 @@ HDESK
|
|||
NTAPI
|
||||
NtUserGetThreadDesktop(
|
||||
DWORD dwThreadId,
|
||||
DWORD Unknown1);
|
||||
HDESK hConsoleDesktop);
|
||||
|
||||
enum ThreadStateRoutines
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue