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
08cc4145
Commit
08cc4145
authored
Mar 04, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add a test for ProcessImageFileNameWin32.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d96a5a03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
info.c
dlls/ntdll/tests/info.c
+22
-0
No files found.
dlls/ntdll/tests/info.c
View file @
08cc4145
...
...
@@ -1444,6 +1444,28 @@ todo_wine
"Expected image name to begin with
\\
Device
\\
, got %s
\n
"
,
wine_dbgstr_wn
(
buffer
->
Buffer
,
buffer
->
Length
/
sizeof
(
WCHAR
)));
heap_free
(
buffer
);
status
=
pNtQueryInformationProcess
(
NULL
,
ProcessImageFileNameWin32
,
&
image_file_name
,
sizeof
(
image_file_name
),
NULL
);
if
(
status
==
STATUS_INVALID_INFO_CLASS
)
{
win_skip
(
"ProcessImageFileNameWin32 is not supported
\n
"
);
return
;
}
ok
(
status
==
STATUS_INVALID_HANDLE
,
"Expected STATUS_INVALID_HANDLE, got %08x
\n
"
,
status
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessImageFileNameWin32
,
&
image_file_name
,
2
,
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_INFO_LENGTH_MISMATCH, got %08x
\n
"
,
status
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessImageFileNameWin32
,
&
image_file_name
,
sizeof
(
image_file_name
),
&
ReturnLength
);
ok
(
status
==
STATUS_INFO_LENGTH_MISMATCH
,
"Expected STATUS_INFO_LENGTH_MISMATCH, got %08x
\n
"
,
status
);
buffer
=
heap_alloc
(
ReturnLength
);
status
=
pNtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessImageFileNameWin32
,
buffer
,
ReturnLength
,
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
ok
(
memcmp
(
buffer
->
Buffer
,
deviceW
,
sizeof
(
deviceW
)),
"Expected image name not to begin with
\\
Device
\\
, got %s
\n
"
,
wine_dbgstr_wn
(
buffer
->
Buffer
,
buffer
->
Length
/
sizeof
(
WCHAR
)));
heap_free
(
buffer
);
}
static
void
test_query_process_debug_object_handle
(
int
argc
,
char
**
argv
)
...
...
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