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
f6ceedf6
Commit
f6ceedf6
authored
Sep 15, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: In SYSTEM_BASIC_INFORMATION, the active processors field refers to the affinity mask.
parent
f684bbae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cpu.c
dlls/kernel32/cpu.c
+1
-1
virtual.c
dlls/ntdll/virtual.c
+1
-1
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/kernel32/cpu.c
View file @
f6ceedf6
...
...
@@ -382,7 +382,7 @@ VOID WINAPI GetSystemInfo(
cachedsi
.
dwPageSize
=
sbi
.
PageSize
;
cachedsi
.
lpMinimumApplicationAddress
=
sbi
.
LowestUserAddress
;
cachedsi
.
lpMaximumApplicationAddress
=
sbi
.
HighestUserAddress
;
cachedsi
.
dwNumberOfProcessors
=
sbi
.
Active
Processors
;
cachedsi
.
dwNumberOfProcessors
=
sbi
.
NumberOf
Processors
;
cachedsi
.
dwAllocationGranularity
=
sbi
.
AllocationGranularity
;
/* choose sensible defaults ...
...
...
dlls/ntdll/virtual.c
View file @
f6ceedf6
...
...
@@ -1380,7 +1380,7 @@ void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
info
->
AllocationGranularity
=
get_mask
(
0
)
+
1
;
info
->
LowestUserAddress
=
(
void
*
)
0x10000
;
info
->
HighestUserAddress
=
(
char
*
)
user_space_limit
-
1
;
info
->
ActiveProcessors
=
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
;
info
->
ActiveProcessors
AffinityMask
=
(
1
<<
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
)
-
1
;
info
->
NumberOfProcessors
=
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
;
}
...
...
include/winternl.h
View file @
f6ceedf6
...
...
@@ -1196,7 +1196,7 @@ typedef struct _SYSTEM_BASIC_INFORMATION {
ULONG_PTR
AllocationGranularity
;
PVOID
LowestUserAddress
;
PVOID
HighestUserAddress
;
ULONG_PTR
ActiveProcessors
;
ULONG_PTR
ActiveProcessors
AffinityMask
;
BYTE
NumberOfProcessors
;
#else
BYTE
Reserved1
[
24
];
...
...
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