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
5ea23d61
Commit
5ea23d61
authored
Sep 10, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use FAILED instead of !SUCCEEDED.
parent
8b3f3ef8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-2
shellitem.c
dlls/shell32/shellitem.c
+2
-2
No files found.
dlls/shell32/cpanelfolder.c
View file @
5ea23d61
...
@@ -688,8 +688,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetDisplayNameOf(IShellFolder2 * iface,
...
@@ -688,8 +688,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetDisplayNameOf(IShellFolder2 * iface,
PathAddBackslashW
(
wszPath
);
PathAddBackslashW
(
wszPath
);
len
=
lstrlenW
(
wszPath
);
len
=
lstrlenW
(
wszPath
);
if
(
!
SUCCEEDED
if
(
FAILED
(
SHELL32_GetDisplayNameOfChild
(
iface
,
pidl
,
dwFlags
|
SHGDN_INFOLDER
,
wszPath
+
len
,
MAX_PATH
+
1
-
len
)))
(
SHELL32_GetDisplayNameOfChild
(
iface
,
pidl
,
dwFlags
|
SHGDN_INFOLDER
,
wszPath
+
len
,
MAX_PATH
+
1
-
len
)))
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
!
WideCharToMultiByte
(
CP_ACP
,
0
,
wszPath
,
-
1
,
szPath
,
MAX_PATH
,
NULL
,
NULL
))
if
(
!
WideCharToMultiByte
(
CP_ACP
,
0
,
wszPath
,
-
1
,
szPath
,
MAX_PATH
,
NULL
,
NULL
))
wszPath
[
0
]
=
'\0'
;
wszPath
[
0
]
=
'\0'
;
...
...
dlls/shell32/shellitem.c
View file @
5ea23d61
...
@@ -350,13 +350,13 @@ HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST pidlParent,
...
@@ -350,13 +350,13 @@ HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST pidlParent,
{
{
IPersistFolder2
*
ppf2Parent
;
IPersistFolder2
*
ppf2Parent
;
if
(
!
SUCCEED
ED
(
IPersistFolder2_QueryInterface
(
psfParent
,
&
IID_IPersistFolder2
,
(
void
**
)
&
ppf2Parent
)))
if
(
FAIL
ED
(
IPersistFolder2_QueryInterface
(
psfParent
,
&
IID_IPersistFolder2
,
(
void
**
)
&
ppf2Parent
)))
{
{
FIXME
(
"couldn't get IPersistFolder2 interface of parent
\n
"
);
FIXME
(
"couldn't get IPersistFolder2 interface of parent
\n
"
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
if
(
!
SUCCEED
ED
(
IPersistFolder2_GetCurFolder
(
ppf2Parent
,
&
temp_parent
)))
if
(
FAIL
ED
(
IPersistFolder2_GetCurFolder
(
ppf2Parent
,
&
temp_parent
)))
{
{
FIXME
(
"couldn't get parent PIDL
\n
"
);
FIXME
(
"couldn't get parent PIDL
\n
"
);
IPersistFolder2_Release
(
ppf2Parent
);
IPersistFolder2_Release
(
ppf2Parent
);
...
...
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