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
66d39fba
Commit
66d39fba
authored
Sep 17, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Adapt to the new behavior of NtPowerInformation.
parent
a6086e11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
builtin.c
dlls/wbemprox/builtin.c
+11
-3
No files found.
dlls/wbemprox/builtin.c
View file @
66d39fba
...
...
@@ -782,9 +782,17 @@ static void get_processor_name( WCHAR *name )
}
static
UINT
get_processor_maxclockspeed
(
void
)
{
PROCESSOR_POWER_INFORMATION
info
;
if
(
!
NtPowerInformation
(
ProcessorInformation
,
NULL
,
0
,
&
info
,
sizeof
(
info
)
))
return
info
.
MaxMhz
;
return
1000000
;
PROCESSOR_POWER_INFORMATION
*
info
;
UINT
ret
=
1000000
,
size
=
get_processor_count
()
*
sizeof
(
PROCESSOR_POWER_INFORMATION
);
NTSTATUS
status
;
if
((
info
=
heap_alloc
(
size
)))
{
status
=
NtPowerInformation
(
ProcessorInformation
,
NULL
,
0
,
info
,
size
);
if
(
!
status
)
ret
=
info
[
0
].
MaxMhz
;
heap_free
(
info
);
}
return
ret
;
}
static
void
fill_processor
(
struct
table
*
table
)
...
...
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