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
bdf583b3
Commit
bdf583b3
authored
Jun 16, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add tests to examine output file part pointer behavior for RtlGetFullPathName_U.
parent
baaaee82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
path.c
dlls/ntdll/tests/path.c
+23
-0
No files found.
dlls/ntdll/tests/path.c
View file @
bdf583b3
...
...
@@ -226,6 +226,9 @@ static void test_RtlIsNameLegalDOS8Dot3(void)
}
static
void
test_RtlGetFullPathName_U
(
void
)
{
static
const
WCHAR
emptyW
[]
=
{
0
};
static
const
WCHAR
deadbeefW
[]
=
{
'd'
,
'e'
,
'a'
,
'd'
,
'b'
,
'e'
,
'e'
,
'f'
,
0
};
struct
test
{
const
char
*
path
;
...
...
@@ -269,6 +272,26 @@ static void test_RtlGetFullPathName_U(void)
DWORD
reslen
;
UINT
len
;
file_part
=
(
WCHAR
*
)
0xdeadbeef
;
lstrcpyW
(
rbufferW
,
deadbeefW
);
ret
=
pRtlGetFullPathName_U
(
NULL
,
MAX_PATH
,
rbufferW
,
&
file_part
);
ok
(
!
ret
,
"Expected RtlGetFullPathName_U to return 0, got %u
\n
"
,
ret
);
ok
(
!
lstrcmpW
(
rbufferW
,
deadbeefW
),
"Expected the output buffer to be untouched, got %s
\n
"
,
wine_dbgstr_w
(
rbufferW
));
ok
(
file_part
==
(
WCHAR
*
)
0xdeadbeef
||
file_part
==
NULL
,
/* Win7 */
"Expected file part pointer to be untouched, got %p
\n
"
,
file_part
);
file_part
=
(
WCHAR
*
)
0xdeadbeef
;
lstrcpyW
(
rbufferW
,
deadbeefW
);
ret
=
pRtlGetFullPathName_U
(
emptyW
,
MAX_PATH
,
rbufferW
,
&
file_part
);
ok
(
!
ret
,
"Expected RtlGetFullPathName_U to return 0, got %u
\n
"
,
ret
);
ok
(
!
lstrcmpW
(
rbufferW
,
deadbeefW
),
"Expected the output buffer to be untouched, got %s
\n
"
,
wine_dbgstr_w
(
rbufferW
));
ok
(
file_part
==
(
WCHAR
*
)
0xdeadbeef
||
file_part
==
NULL
,
/* Win7 */
"Expected file part pointer to be untouched, got %p
\n
"
,
file_part
);
for
(
test
=
tests
;
test
->
path
;
test
++
)
{
len
=
strlen
(
test
->
rname
)
*
sizeof
(
WCHAR
);
...
...
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