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
707882a6
Commit
707882a6
authored
Jun 08, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psapi/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
091c7715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
psapi_main.c
dlls/psapi/tests/psapi_main.c
+3
-3
No files found.
dlls/psapi/tests/psapi_main.c
View file @
707882a6
...
...
@@ -536,12 +536,12 @@ todo_wine {
}
SetLastError
(
0xdeadbeef
);
ret
=
pGetMappedFileNameW
(
GetCurrentProcess
(),
base
,
map_nameW
,
sizeof
(
map_nameW
)
/
sizeof
(
map_nameW
[
0
]
));
ret
=
pGetMappedFileNameW
(
GetCurrentProcess
(),
base
,
map_nameW
,
ARRAY_SIZE
(
map_nameW
));
todo_wine
{
ok
(
ret
,
"GetMappedFileNameW error %d
\n
"
,
GetLastError
());
ok
(
ret
>
strlen
(
device_name
),
"map_name should be longer than device_name
\n
"
);
}
if
(
nt_get_mapped_file_name
(
GetCurrentProcess
(),
base
,
nt_map_name
,
sizeof
(
nt_map_name
)
/
sizeof
(
nt_map_name
[
0
]
)))
if
(
nt_get_mapped_file_name
(
GetCurrentProcess
(),
base
,
nt_map_name
,
ARRAY_SIZE
(
nt_map_name
)))
{
ok
(
memcmp
(
map_nameW
,
nt_map_name
,
lstrlenW
(
map_nameW
))
==
0
,
"map name does not start with a device name: %s
\n
"
,
map_name
);
WideCharToMultiByte
(
CP_ACP
,
0
,
map_nameW
,
-
1
,
map_name
,
MAX_PATH
,
NULL
,
NULL
);
...
...
@@ -658,7 +658,7 @@ static void test_GetProcessImageFileName(void)
/* correct call */
memset
(
szImgPathW
,
0xff
,
sizeof
(
szImgPathW
));
ret
=
pGetProcessImageFileNameW
(
hpQI
,
szImgPathW
,
sizeof
(
szImgPathW
)
/
sizeof
(
WCHAR
));
ret
=
pGetProcessImageFileNameW
(
hpQI
,
szImgPathW
,
ARRAY_SIZE
(
szImgPathW
));
ok
(
ret
>
0
,
"GetProcessImageFileNameW should have succeeded.
\n
"
);
ok
(
szImgPathW
[
0
]
==
'\\'
,
"GetProcessImageFileNameW should have returned an NT path.
\n
"
);
ok
(
lstrlenW
(
szImgPathW
)
==
ret
,
"Expected length to be %d, got %d
\n
"
,
ret
,
lstrlenW
(
szImgPathW
));
...
...
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