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
24ab4453
Commit
24ab4453
authored
Jul 04, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add a test for GetShortPathName called for a non-existent short file name.
parent
0fa1877e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
path.c
dlls/kernel32/tests/path.c
+10
-0
No files found.
dlls/kernel32/tests/path.c
View file @
24ab4453
...
...
@@ -1275,7 +1275,17 @@ static void test_GetShortPathNameW(void)
ok
(
length
,
"GetShortPathNameW returned 0.
\n
"
);
ret
=
GetShortPathNameW
(
path
,
short_path
,
length
);
ok
(
ret
,
"GetShortPathNameW returned 0.
\n
"
);
lstrcatW
(
short_path
,
name
);
/* GetShortPathName for a non-existent short file name should fail */
SetLastError
(
0xdeadbeef
);
length
=
GetShortPathNameW
(
short_path
,
path
,
0
);
todo_wine
ok
(
!
length
,
"GetShortPathNameW should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
file
=
CreateFileW
(
short_path
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"File was not created.
\n
"
);
...
...
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