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
f97a2f9d
Commit
f97a2f9d
authored
Feb 09, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix test_GetDisplayName() to cope with a left-over test directory.
parent
14712ece
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
shlfolder.c
dlls/shell32/tests/shlfolder.c
+9
-3
No files found.
dlls/shell32/tests/shlfolder.c
View file @
f97a2f9d
...
...
@@ -338,6 +338,7 @@ static void test_GetDisplayName(void)
HANDLE
hTestFile
;
WCHAR
wszTestFile
[
MAX_PATH
],
wszTestFile2
[
MAX_PATH
],
wszTestDir
[
MAX_PATH
];
char
szTestFile
[
MAX_PATH
],
szTestDir
[
MAX_PATH
];
DWORD
attr
;
STRRET
strret
;
LPSHELLFOLDER
psfDesktop
,
psfPersonal
;
IUnknown
*
psfFile
;
...
...
@@ -364,10 +365,15 @@ static void test_GetDisplayName(void)
PathAddBackslashW
(
wszTestDir
);
lstrcatW
(
wszTestDir
,
wszDirName
);
/* Use ANSI file functions so this works on Windows 9x */
WideCharToMultiByte
(
CP_ACP
,
0
,
wszTestDir
,
-
1
,
szTestDir
,
MAX_PATH
,
0
,
0
);
result
=
CreateDirectoryA
(
szTestDir
,
NULL
);
ok
(
result
,
"CreateDirectoryA failed! Last error: %u
\n
"
,
GetLastError
());
if
(
!
result
)
return
;
CreateDirectoryA
(
szTestDir
,
NULL
);
attr
=
GetFileAttributesA
(
szTestDir
);
if
(
attr
==
INVALID_FILE_ATTRIBUTES
||
!
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
))
{
ok
(
0
,
"unable to create the '%s' directory
\n
"
,
szTestDir
);
return
;
}
lstrcpyW
(
wszTestFile
,
wszTestDir
);
PathAddBackslashW
(
wszTestFile
);
...
...
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