Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
08ae0d09
Commit
08ae0d09
authored
Apr 21, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove THREAD_INFO struct.
Rename THREADINFO into SYSTEM_THREAD_INFORMATION.
parent
250a8aec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
22 deletions
+7
-22
nt.c
dlls/ntdll/nt.c
+3
-3
winternl.h
include/winternl.h
+4
-19
No files found.
dlls/ntdll/nt.c
View file @
08ae0d09
...
...
@@ -701,13 +701,13 @@ NTSTATUS WINAPI NtQuerySystemInformation(
if
(
ret
==
STATUS_NO_MORE_FILES
)
ret
=
STATUS_SUCCESS
;
break
;
}
if
(
Length
>=
len
+
wlen
+
spi
->
dwThreadCount
*
sizeof
(
THREAD_INFO
))
if
(
Length
>=
len
+
wlen
+
spi
->
dwThreadCount
*
sizeof
(
SYSTEM_THREAD_INFORMATION
))
{
int
i
,
j
;
/* set thread info */
spi
->
dwOffset
+=
spi
->
dwThreadCount
*
sizeof
(
THREAD_INFO
);
len
+=
spi
->
dwThreadCount
*
sizeof
(
THREAD_INFO
);
spi
->
dwOffset
+=
spi
->
dwThreadCount
*
sizeof
(
SYSTEM_THREAD_INFORMATION
);
len
+=
spi
->
dwThreadCount
*
sizeof
(
SYSTEM_THREAD_INFORMATION
);
i
=
j
=
0
;
while
(
ret
==
STATUS_SUCCESS
)
{
...
...
include/winternl.h
View file @
08ae0d09
...
...
@@ -712,8 +712,7 @@ typedef struct _UNWIND_HISTORY_TABLE {
*/
/* This is used by NtQuerySystemInformation */
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
typedef
struct
{
typedef
struct
_SYSTEM_THREAD_INFORMATION
{
FILETIME
ftKernelTime
;
FILETIME
ftUserTime
;
FILETIME
ftCreateTime
;
...
...
@@ -726,21 +725,7 @@ typedef struct {
DWORD
dwContextSwitches
;
DWORD
dwThreadState
;
DWORD
dwWaitReason
;
}
THREADINFO
,
*
PTHREADINFO
;
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
typedef
struct
_THREAD_INFO
{
DWORD
Unknown1
[
6
];
DWORD
ThreadID
;
DWORD
Unknown2
[
3
];
DWORD
Status
;
DWORD
WaitReason
;
DWORD
Unknown3
[
4
];
}
THREAD_INFO
,
PTHREAD_INFO
;
/***********************************************************************
* Types and data structures
*/
}
SYSTEM_THREAD_INFORMATION
,
*
PSYSTEM_THREAD_INFORMATION
;
typedef
struct
_IO_STATUS_BLOCK
{
union
{
...
...
@@ -873,7 +858,7 @@ typedef struct _PROCESS_INFO {
ULONG
PeakPagefileUsage
;
DWORD
PrivateBytes
;
DWORD
Unknown6
[
4
];
THREAD_INFO
ati
[
ANYSIZE_ARRAY
];
/* 94 size=0x40*/
SYSTEM_THREAD_INFORMATION
ati
[
ANYSIZE_ARRAY
];
/* 94 size=0x40*/
}
PROCESS_INFO
,
PPROCESS_INFO
;
typedef
struct
_RTL_HEAP_DEFINITION
{
...
...
@@ -1062,7 +1047,7 @@ typedef struct _SYSTEM_PROCESS_INFORMATION {
DWORD
dwPrivateBytes
;
DWORD
dwPageFileBytes
;
DWORD
dwUnknown7
[
4
];
THREADINFO
ti
[
1
];
SYSTEM_THREAD_INFORMATION
ti
[
1
];
#else
ULONG
NextEntryOffset
;
BYTE
Reserved1
[
52
];
...
...
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