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
888d1c67
Commit
888d1c67
authored
Oct 08, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use session id stored in PEB in ProcessIdToSessionId.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
19e16319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
process.c
dlls/kernel32/process.c
+4
-4
No files found.
dlls/kernel32/process.c
View file @
888d1c67
...
@@ -3742,10 +3742,10 @@ BOOL WINAPI K32GetProcessMemoryInfo(HANDLE process,
...
@@ -3742,10 +3742,10 @@ BOOL WINAPI K32GetProcessMemoryInfo(HANDLE process,
*/
*/
BOOL
WINAPI
ProcessIdToSessionId
(
DWORD
procid
,
DWORD
*
sessionid_ptr
)
BOOL
WINAPI
ProcessIdToSessionId
(
DWORD
procid
,
DWORD
*
sessionid_ptr
)
{
{
/* According to MSDN, if the calling process is not in a terminal
if
(
procid
!=
GetCurrentProcessId
())
* services environment, then the sessionid returned is zero.
FIXME
(
"Unsupported for other processes.
\n
"
);
*/
*
sessionid_ptr
=
0
;
*
sessionid_ptr
=
NtCurrentTeb
()
->
Peb
->
SessionId
;
return
TRUE
;
return
TRUE
;
}
}
...
...
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