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
52f03de9
Commit
52f03de9
authored
Feb 18, 2008
by
Jeff Latimer
Committed by
Alexandre Julliard
Feb 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh/tests: Add test for size > 0 but no buffer.
parent
84acc6f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pdh.c
dlls/pdh/tests/pdh.c
+8
-0
No files found.
dlls/pdh/tests/pdh.c
View file @
52f03de9
...
...
@@ -646,6 +646,10 @@ static void test_PdhLookupPerfNameByIndexA( void )
ok
(
size
==
sizeof
(
"% Processor Time"
),
"PdhLookupPerfNameByIndexA failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
);
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
674
,
NULL
,
&
size
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
size
=
sizeof
(
buffer
);
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
674
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
ok
(
!
lstrcmpA
(
buffer
,
"System Up Time"
),
...
...
@@ -672,6 +676,10 @@ static void test_PdhLookupPerfNameByIndexW( void )
ok
(
size
==
sizeof
(
processor_time
)
/
sizeof
(
WCHAR
),
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
)
/
sizeof
(
WCHAR
);
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
674
,
NULL
,
&
size
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
size
=
sizeof
(
buffer
)
/
sizeof
(
WCHAR
);
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
674
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
uptime
)
/
sizeof
(
WCHAR
),
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
...
...
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