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
ca0074e7
Commit
ca0074e7
authored
Oct 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use FAILED instead of !SUCCEEDED.
parent
0c07d3ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
shelllink.c
dlls/shell32/tests/shelllink.c
+6
-6
shlexec.c
dlls/shell32/tests/shlexec.c
+1
-1
shlfileop.c
dlls/shell32/tests/shlfileop.c
+1
-1
shlfolder.c
dlls/shell32/tests/shlfolder.c
+1
-1
No files found.
dlls/shell32/tests/shelllink.c
View file @
ca0074e7
...
...
@@ -114,7 +114,7 @@ static void test_get_set(void)
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkA
,
(
LPVOID
*
)
&
sl
);
ok
(
SUCCEEDED
(
r
),
"no IID_IShellLinkA (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
return
;
/* Test Getting / Setting the description */
...
...
@@ -329,7 +329,7 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails)
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkA
,
(
LPVOID
*
)
&
sl
);
lok
(
SUCCEEDED
(
r
),
"no IID_IShellLinkA (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
return
;
if
(
desc
->
description
)
...
...
@@ -404,12 +404,12 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int todo)
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellLinkA
,
(
LPVOID
*
)
&
sl
);
lok
(
SUCCEEDED
(
r
),
"no IID_IShellLinkA (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
return
;
r
=
IShellLinkA_QueryInterface
(
sl
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
lok
(
SUCCEEDED
(
r
),
"no IID_IPersistFile (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
{
IShellLinkA_Release
(
sl
);
return
;
...
...
@@ -418,7 +418,7 @@ static void check_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int todo)
r
=
IPersistFile_Load
(
pf
,
path
,
STGM_READ
);
lok
(
SUCCEEDED
(
r
),
"load failed (0x%08x)
\n
"
,
r
);
IPersistFile_Release
(
pf
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
{
IShellLinkA_Release
(
sl
);
return
;
...
...
@@ -715,7 +715,7 @@ START_TEST(shelllink)
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
return
;
test_get_set
();
...
...
dlls/shell32/tests/shlexec.c
View file @
ca0074e7
...
...
@@ -1505,7 +1505,7 @@ static void init_test(void)
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08x)
\n
"
,
r
);
if
(
!
SUCCEED
ED
(
r
))
if
(
FAIL
ED
(
r
))
exit
(
1
);
rc
=
GetModuleFileName
(
NULL
,
argv0
,
sizeof
(
argv0
));
...
...
dlls/shell32/tests/shlfileop.c
View file @
ca0074e7
...
...
@@ -275,7 +275,7 @@ static void test_get_file_info_iconlist(void)
SHFILEINFOW
shInfow
;
hr
=
SHGetSpecialFolderLocation
(
NULL
,
CSIDL_DESKTOP
,
&
pidList
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
skip
(
"can't get desktop pidl
\n
"
);
return
;
}
...
...
dlls/shell32/tests/shlfolder.c
View file @
ca0074e7
...
...
@@ -1398,7 +1398,7 @@ static void testSHGetFolderPathAndSubDirA(void)
skip
(
"SHGetFolderPathA not present!
\n
"
);
return
;
}
if
(
!
SUCCEED
ED
(
pSHGetFolderPathA
(
NULL
,
CSIDL_LOCAL_APPDATA
,
NULL
,
SHGFP_TYPE_CURRENT
,
appdata
)))
if
(
FAIL
ED
(
pSHGetFolderPathA
(
NULL
,
CSIDL_LOCAL_APPDATA
,
NULL
,
SHGFP_TYPE_CURRENT
,
appdata
)))
{
skip
(
"SHGetFolderPathA failed for CSIDL_LOCAL_APPDATA!
\n
"
);
return
;
...
...
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