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
c0700eef
Commit
c0700eef
authored
Feb 19, 2008
by
Jeff Latimer
Committed by
Alexandre Julliard
Feb 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Pass parameters through to PdhLookupPerfIndexByNameW for checking.
parent
99bde8b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
pdh_main.c
dlls/pdh/pdh_main.c
+6
-7
No files found.
dlls/pdh/pdh_main.c
View file @
c0700eef
...
...
@@ -779,23 +779,22 @@ PDH_STATUS WINAPI PdhGetRawCounterValue( PDH_HCOUNTER handle, LPDWORD type,
PDH_STATUS
WINAPI
PdhLookupPerfIndexByNameA
(
LPCSTR
machine
,
LPCSTR
name
,
LPDWORD
index
)
{
PDH_STATUS
ret
;
WCHAR
*
machineW
=
NULL
;
WCHAR
*
nameW
;
TRACE
(
"%s %s %p
\n
"
,
debugstr_a
(
machine
),
debugstr_a
(
name
),
index
);
if
(
!
name
||
!
index
)
return
PDH_INVALID_ARGUMENT
;
if
(
!
name
)
return
PDH_INVALID_ARGUMENT
;
if
(
machine
&&
!
(
machineW
=
pdh_strdup_aw
(
machine
)))
return
PDH_MEMORY_ALLOCATION_FAILURE
;
if
(
machine
)
{
FIXME
(
"remote machine not supported
\n
"
);
return
PDH_CSTATUS_NO_MACHINE
;
}
if
(
!
(
nameW
=
pdh_strdup_aw
(
name
)))
return
PDH_MEMORY_ALLOCATION_FAILURE
;
ret
=
PdhLookupPerfIndexByNameW
(
NULL
,
nameW
,
index
);
ret
=
PdhLookupPerfIndexByNameW
(
machineW
,
nameW
,
index
);
heap_free
(
nameW
);
heap_free
(
machineW
);
return
ret
;
}
...
...
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