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
d87aa43c
Commit
d87aa43c
authored
May 15, 2014
by
Huw Davies
Committed by
Alexandre Julliard
May 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix the tests when run from the top directory.
parent
04af7227
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
shlfolder.c
dlls/shell32/tests/shlfolder.c
+5
-5
No files found.
dlls/shell32/tests/shlfolder.c
View file @
d87aa43c
...
...
@@ -533,12 +533,13 @@ if (0)
IShellFolder_Release
(
psfSystemDir
);
GetCurrentDirectoryA
(
MAX_PATH
,
buf
);
if
(
!
lstrlenA
(
buf
)
)
cChars
=
GetCurrentDirectoryA
(
MAX_PATH
,
buf
);
if
(
!
cChars
)
{
skip
(
"Failed to get current directory, skipping tests.
\n
"
);
return
;
}
if
(
buf
[
cChars
-
1
]
!=
'\\'
)
lstrcatA
(
buf
,
"
\\
"
);
SHGetDesktopFolder
(
&
psfDesktop
);
...
...
@@ -546,7 +547,6 @@ if (0)
/* .html */
lstrcpyA
(
pathA
,
buf
);
lstrcatA
(
pathA
,
"
\\
"
);
lstrcatA
(
pathA
,
filename_html
);
hfile
=
CreateFileA
(
pathA
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
if
(
hfile
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -590,7 +590,6 @@ if (0)
/* .txt */
lstrcpyA
(
pathA
,
buf
);
lstrcatA
(
pathA
,
"
\\
"
);
lstrcatA
(
pathA
,
filename_txt
);
hfile
=
CreateFileA
(
pathA
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
if
(
hfile
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -604,6 +603,7 @@ if (0)
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
pidl
,
NULL
,
&
IID_IShellFolder
,
(
void
**
)
&
psfChild
);
ok
(
hr
==
E_FAIL
||
/* Vista+ */
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
)
||
/* XP, W2K3 */
hr
==
E_INVALIDARG
||
/* W2K item in top dir */
broken
(
hr
==
S_OK
),
/* Win9x, NT4, W2K */
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IShellFolder_Release
(
psfChild
);
...
...
@@ -616,7 +616,6 @@ if (0)
/* .foo */
lstrcpyA
(
pathA
,
buf
);
lstrcatA
(
pathA
,
"
\\
"
);
lstrcatA
(
pathA
,
filename_foo
);
hfile
=
CreateFileA
(
pathA
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
if
(
hfile
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -630,6 +629,7 @@ if (0)
hr
=
IShellFolder_BindToObject
(
psfDesktop
,
pidl
,
NULL
,
&
IID_IShellFolder
,
(
void
**
)
&
psfChild
);
ok
(
hr
==
E_FAIL
||
/* Vista+ */
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
)
||
/* XP, W2K3 */
hr
==
E_INVALIDARG
||
/* W2K item in top dir */
broken
(
hr
==
S_OK
),
/* Win9x, NT4, W2K */
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IShellFolder_Release
(
psfChild
);
...
...
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