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
cad2aaff
Commit
cad2aaff
authored
Oct 03, 2010
by
Austin English
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psapi/tests: Remove an ugly macro.
parent
0ed04f87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
psapi_main.c
dlls/psapi/tests/psapi_main.c
+2
-9
No files found.
dlls/psapi/tests/psapi_main.c
View file @
cad2aaff
...
...
@@ -25,13 +25,6 @@
#include "wine/test.h"
#include "psapi.h"
#define expect_eq_d(expected, actual) \
do { \
int value = (actual); \
ok((expected) == value, "Expected " #actual " to be %d (" #expected ") is %d\n", \
(expected), value); \
} while (0)
#define PSAPI_GET_PROC(func) \
p ## func = (void*)GetProcAddress(hpsapi, #func); \
if(!p ## func) { \
...
...
@@ -223,7 +216,7 @@ static void test_GetProcessImageFileName(void)
ret
=
pGetProcessImageFileNameW
(
hpQI
,
szImgPathW
,
sizeof
(
szImgPathW
)
/
sizeof
(
WCHAR
));
ok
(
ret
>
0
,
"GetProcessImageFileNameW should have succeeded.
\n
"
);
ok
(
szImgPathW
[
0
]
==
'\\'
,
"GetProcessImageFileNameW should have returned an NT path.
\n
"
);
expect_eq_d
(
lstrlenW
(
szImgPathW
),
ret
);
ok
(
lstrlenW
(
szImgPathW
)
==
ret
,
"Expected length to be %d, got %d
\n
"
,
ret
,
lstrlenW
(
szImgPathW
)
);
/* boundary values of 'size' */
w32_err
(
pGetProcessImageFileNameW
(
hpQI
,
szImgPathW
,
ret
),
ERROR_INSUFFICIENT_BUFFER
);
...
...
@@ -232,7 +225,7 @@ static void test_GetProcessImageFileName(void)
ret
=
pGetProcessImageFileNameW
(
hpQI
,
szImgPathW
,
ret
+
1
);
ok
(
ret
>
0
,
"GetProcessImageFileNameW should have succeeded.
\n
"
);
ok
(
szImgPathW
[
0
]
==
'\\'
,
"GetProcessImageFileNameW should have returned an NT path.
\n
"
);
expect_eq_d
(
lstrlenW
(
szImgPathW
),
ret
);
ok
(
lstrlenW
(
szImgPathW
)
==
ret
,
"Expected length to be %d, got %d
\n
"
,
ret
,
lstrlenW
(
szImgPathW
)
);
}
static
void
test_GetModuleFileNameEx
(
void
)
...
...
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