Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
7a62e1a5
Commit
7a62e1a5
authored
Mar 30, 2022
by
Dmitry Timoshkov
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack with replacing Session Id with 0 for services.exe (eterbug #15527)
Signed-off-by:
Pavel Beketov
<
mais@etersoft.ru
>
parent
5d3688e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
system.c
dlls/ntdll/unix/system.c
+2
-1
No files found.
dlls/ntdll/unix/system.c
View file @
7a62e1a5
...
...
@@ -2381,6 +2381,7 @@ static void read_dev_urandom( void *buf, ULONG len )
static
NTSTATUS
get_system_process_info
(
SYSTEM_INFORMATION_CLASS
class
,
void
*
info
,
ULONG
size
,
ULONG
*
len
)
{
static
const
WCHAR
servicesW
[]
=
{
's'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
unsigned
int
process_count
,
total_thread_count
,
total_name_len
,
i
,
j
;
unsigned
int
thread_info_size
;
unsigned
int
pos
=
0
;
...
...
@@ -2454,7 +2455,7 @@ C_ASSERT( sizeof(struct process_info) <= sizeof(SYSTEM_PROCESS_INFORMATION) );
nt_process
->
dwBasePriority
=
server_process
->
priority
;
nt_process
->
UniqueProcessId
=
UlongToHandle
(
server_process
->
pid
);
nt_process
->
ParentProcessId
=
UlongToHandle
(
server_process
->
parent_pid
);
nt_process
->
SessionId
=
server_process
->
session_id
;
nt_process
->
SessionId
=
!
wcsnicmp
(
file_part
,
servicesW
,
name_len
)
?
0
:
server_process
->
session_id
;
nt_process
->
HandleCount
=
server_process
->
handle_count
;
get_thread_times
(
server_process
->
unix_pid
,
-
1
,
&
nt_process
->
KernelTime
,
&
nt_process
->
UserTime
);
fill_vm_counters
(
&
nt_process
->
vmCounters
,
server_process
->
unix_pid
);
...
...
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