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
7e0acf14
Commit
7e0acf14
authored
Jul 09, 2019
by
Serge Gautherie
Committed by
Alexandre Julliard
Jul 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test QueryFullProcessImageNameW() flags.
Signed-off-by:
Serge Gautherie
<
winehq-git_serge_180711@gautherie.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec4752ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
process.c
dlls/kernel32/tests/process.c
+28
-0
No files found.
dlls/kernel32/tests/process.c
View file @
7e0acf14
...
...
@@ -1978,6 +1978,7 @@ static void test_QueryFullProcessImageNameW(void)
WCHAR
deviceW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
WCHAR
buf
[
1024
];
DWORD
size
,
len
;
DWORD
flags
;
if
(
!
pQueryFullProcessImageNameW
)
{
...
...
@@ -2031,6 +2032,33 @@ static void test_QueryFullProcessImageNameW(void)
expect_eq_d
(
ERROR_INSUFFICIENT_BUFFER
,
GetLastError
());
expect_eq_ws_i
(
module_name
,
buf
);
/* buffer not changed */
/* Invalid flags - a few arbitrary values only */
for
(
flags
=
2
;
flags
<=
15
;
++
flags
)
{
size
=
ARRAY_SIZE
(
buf
);
SetLastError
(
0xdeadbeef
);
*
(
DWORD
*
)
buf
=
0x13579acf
;
todo_wine
{
expect_eq_d
(
FALSE
,
pQueryFullProcessImageNameW
(
hSelf
,
flags
,
buf
,
&
size
));
expect_eq_d
(
ARRAY_SIZE
(
buf
),
size
);
/* size not changed */
expect_eq_d
(
ERROR_INVALID_PARAMETER
,
GetLastError
());
expect_eq_d
(
0x13579acf
,
*
(
DWORD
*
)
buf
);
/* buffer not changed */
}
}
for
(
flags
=
16
;
flags
!=
0
;
flags
<<=
1
)
{
size
=
ARRAY_SIZE
(
buf
);
SetLastError
(
0xdeadbeef
);
*
(
DWORD
*
)
buf
=
0x13579acf
;
todo_wine
{
expect_eq_d
(
FALSE
,
pQueryFullProcessImageNameW
(
hSelf
,
flags
,
buf
,
&
size
));
expect_eq_d
(
ARRAY_SIZE
(
buf
),
size
);
/* size not changed */
expect_eq_d
(
ERROR_INVALID_PARAMETER
,
GetLastError
());
expect_eq_d
(
0x13579acf
,
*
(
DWORD
*
)
buf
);
/* buffer not changed */
}
}
/* native path */
size
=
ARRAY_SIZE
(
buf
);
...
...
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