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
f6baf976
Commit
f6baf976
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: Use FAILED instead of !SUCCEEDED.
parent
443bfc99
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
22 deletions
+22
-22
autocomplete.c
dlls/shell32/autocomplete.c
+2
-2
brsfolder.c
dlls/shell32/brsfolder.c
+6
-6
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-1
dragdrophelper.c
dlls/shell32/dragdrophelper.c
+1
-1
pidl.c
dlls/shell32/pidl.c
+3
-3
shellole.c
dlls/shell32/shellole.c
+1
-1
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+1
-1
shfldr_netplaces.c
dlls/shell32/shfldr_netplaces.c
+1
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+4
-4
shlview.c
dlls/shell32/shlview.c
+1
-1
No files found.
dlls/shell32/autocomplete.c
View file @
f6baf976
...
...
@@ -140,7 +140,7 @@ HRESULT WINAPI IAutoComplete_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVO
lpac
->
txtbackup
=
NULL
;
lpac
->
quickComplete
=
NULL
;
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
lpac
),
riid
,
ppv
)))
{
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
lpac
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
lpac
));
return
E_NOINTERFACE
;
}
...
...
@@ -262,7 +262,7 @@ static HRESULT WINAPI IAutoComplete2_fnInit(
This
->
hwndEdit
=
hwndEdit
;
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
punkACL
,
&
IID_IEnumString
,
(
LPVOID
*
)
&
This
->
enumstr
)))
{
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
punkACL
,
&
IID_IEnumString
,
(
LPVOID
*
)
&
This
->
enumstr
)))
{
TRACE
(
"No IEnumString interface
\n
"
);
return
E_NOINTERFACE
;
}
...
...
dlls/shell32/brsfolder.c
View file @
f6baf976
...
...
@@ -225,15 +225,15 @@ static void InitializeTreeView( browse_info *info )
}
else
{
IShellFolder
*
lpsfDesktop
;
hr
=
SHGetDesktopFolder
(
&
lpsfDesktop
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
WARN
(
"SHGetDesktopFolder failed! hr = %08x
\n
"
,
hr
);
return
;
}
hr
=
IShellFolder_BindToObject
(
lpsfDesktop
,
pidlParent
,
0
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
lpsfParent
);
IShellFolder_Release
(
lpsfDesktop
);
}
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
WARN
(
"Could not bind to parent shell folder! hr = %08x
\n
"
,
hr
);
return
;
}
...
...
@@ -244,8 +244,8 @@ static void InitializeTreeView( browse_info *info )
lpsfRoot
=
lpsfParent
;
hr
=
IShellFolder_AddRef
(
lpsfParent
);
}
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
WARN
(
"Could not bind to root shell folder! hr = %08x
\n
"
,
hr
);
IShellFolder_Release
(
lpsfParent
);
return
;
...
...
@@ -253,7 +253,7 @@ static void InitializeTreeView( browse_info *info )
flags
=
BrowseFlagsToSHCONTF
(
info
->
lpBrowseInfo
->
ulFlags
);
hr
=
IShellFolder_EnumObjects
(
lpsfRoot
,
info
->
hWnd
,
flags
,
&
pEnumChildren
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
WARN
(
"Could not get child iterator! hr = %08x
\n
"
,
hr
);
IShellFolder_Release
(
lpsfParent
);
IShellFolder_Release
(
lpsfRoot
);
...
...
dlls/shell32/cpanelfolder.c
View file @
f6baf976
...
...
@@ -143,7 +143,7 @@ HRESULT WINAPI IControlPanel_Constructor(IUnknown* pUnkOuter, REFIID riid, LPVOI
sf
->
pidlRoot
=
_ILCreateControlPanel
();
/* my qualified pidl */
sf
->
pUnkOuter
=
pUnkOuter
?
pUnkOuter
:
_IUnknown_
(
sf
);
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
sf
));
return
E_NOINTERFACE
;
}
...
...
dlls/shell32/dragdrophelper.c
View file @
f6baf976
...
...
@@ -77,7 +77,7 @@ HRESULT WINAPI IDropTargetHelper_Constructor (IUnknown * pUnkOuter, REFIID riid,
dth
->
ref
=
0
;
dth
->
lpVtbl
=
&
vt_IDropTargetHelper
;
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
dth
),
riid
,
ppv
)))
{
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
dth
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
dth
));
return
E_NOINTERFACE
;
}
...
...
dlls/shell32/pidl.c
View file @
f6baf976
...
...
@@ -1016,7 +1016,7 @@ static HRESULT WINAPI _ILParsePathW(LPCWSTR path, LPWIN32_FIND_DATAW lpFindFile,
IShellFolder_Release
(
pSF
);
if
(
!
SUCCEED
ED
(
ret
)
&&
ppidl
)
if
(
FAIL
ED
(
ret
)
&&
ppidl
)
*
ppidl
=
NULL
;
TRACE
(
"%s %p 0x%x
\n
"
,
debugstr_w
(
path
),
ppidl
?
*
ppidl
:
NULL
,
prgfInOut
?
*
prgfInOut
:
0
);
...
...
@@ -1461,7 +1461,7 @@ LPITEMIDLIST _ILCreateGuidFromStrA(LPCSTR szGUID)
{
IID
iid
;
if
(
!
SUCCEED
ED
(
SHCLSIDFromStringA
(
szGUID
,
&
iid
)))
if
(
FAIL
ED
(
SHCLSIDFromStringA
(
szGUID
,
&
iid
)))
{
ERR
(
"%s is not a GUID
\n
"
,
szGUID
);
return
NULL
;
...
...
@@ -1473,7 +1473,7 @@ LPITEMIDLIST _ILCreateGuidFromStrW(LPCWSTR szGUID)
{
IID
iid
;
if
(
!
SUCCEED
ED
(
SHCLSIDFromStringW
(
szGUID
,
&
iid
)))
if
(
FAIL
ED
(
SHCLSIDFromStringW
(
szGUID
,
&
iid
)))
{
ERR
(
"%s is not a GUID
\n
"
,
debugstr_w
(
szGUID
));
return
NULL
;
...
...
dlls/shell32/shellole.c
View file @
f6baf976
...
...
@@ -181,7 +181,7 @@ HRESULT WINAPI SHCoCreateInstance(
FreeLibrary
(
hLibrary
);
hres
=
E_ACCESSDENIED
;
goto
end
;
}
else
if
(
!
SUCCEED
ED
(
hres
=
DllGetClassObject
(
myclsid
,
&
IID_IClassFactory
,
(
LPVOID
*
)
&
pcf
)))
{
}
else
if
(
FAIL
ED
(
hres
=
DllGetClassObject
(
myclsid
,
&
IID_IClassFactory
,
(
LPVOID
*
)
&
pcf
)))
{
TRACE
(
"GetClassObject failed 0x%08x
\n
"
,
hres
);
goto
end
;
}
...
...
dlls/shell32/shfldr_fs.c
View file @
f6baf976
...
...
@@ -248,7 +248,7 @@ IFSFolder_Constructor (IUnknown * pUnkOuter, REFIID riid, LPVOID * ppv)
sf
->
pclsid
=
(
CLSID
*
)
&
CLSID_ShellFSFolder
;
sf
->
pUnkOuter
=
pUnkOuter
?
pUnkOuter
:
_IUnknown_
(
sf
);
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
sf
));
return
E_NOINTERFACE
;
}
...
...
dlls/shell32/shfldr_mycomp.c
View file @
f6baf976
...
...
@@ -119,7 +119,7 @@ HRESULT WINAPI ISF_MyComputer_Constructor (IUnknown * pUnkOuter, REFIID riid, LP
sf
->
lpVtblPersistFolder2
=
&
vt_PersistFolder2
;
sf
->
pidlRoot
=
_ILCreateMyComputer
();
/* my qualified pidl */
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
sf
));
return
E_NOINTERFACE
;
...
...
dlls/shell32/shfldr_netplaces.c
View file @
f6baf976
...
...
@@ -103,7 +103,7 @@ HRESULT WINAPI ISF_NetworkPlaces_Constructor (IUnknown * pUnkOuter, REFIID riid,
sf
->
lpVtblPersistFolder2
=
&
vt_NP_PersistFolder2
;
sf
->
pidlRoot
=
_ILCreateNetHood
();
/* my qualified pidl */
if
(
!
SUCCEED
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
if
(
FAIL
ED
(
IUnknown_QueryInterface
(
_IUnknown_
(
sf
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
sf
));
return
E_NOINTERFACE
;
...
...
dlls/shell32/shfldr_unixfs.c
View file @
f6baf976
...
...
@@ -949,7 +949,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_BindToObject(IShellFolder2* iface
}
hr
=
CreateUnixFolder
(
NULL
,
&
IID_IPersistFolder3
,
(
void
**
)
&
persistFolder
,
clsidChild
);
if
(
!
SUCCEED
ED
(
hr
))
return
hr
;
if
(
FAIL
ED
(
hr
))
return
hr
;
hr
=
IPersistFolder_QueryInterface
(
persistFolder
,
riid
,
ppvOut
);
if
(
SUCCEEDED
(
hr
))
{
...
...
@@ -1170,8 +1170,8 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDisplayNameOf(IShellFolder2* i
SHITEMID
emptyIDL
=
{
0
,
{
0
}
};
hr
=
IShellFolder_BindToObject
(
iface
,
pidl
,
NULL
,
&
IID_IShellFolder
,
(
void
**
)
&
pSubFolder
);
if
(
!
SUCCEED
ED
(
hr
))
return
hr
;
if
(
FAIL
ED
(
hr
))
return
hr
;
hr
=
IShellFolder_GetDisplayNameOf
(
pSubFolder
,
(
LPITEMIDLIST
)
&
emptyIDL
,
uFlags
,
lpName
);
IShellFolder_Release
(
pSubFolder
);
}
...
...
@@ -2081,7 +2081,7 @@ static HRESULT WINAPI UnixFolder_IDropTarget_Drop(IDropTarget *iface, IDataObjec
InitFormatEtc
(
format
,
cfShellIDList
,
TYMED_HGLOBAL
);
hr
=
IDataObject_GetData
(
pDataObject
,
&
format
,
&
medium
);
if
(
!
SUCCEEDED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
if
(
medium
.
tymed
==
TYMED_HGLOBAL
)
{
...
...
dlls/shell32/shlview.c
View file @
f6baf976
...
...
@@ -384,7 +384,7 @@ static BOOL ShellView_InitList(IShellViewImpl * This)
{
for
(
i
=
0
;
1
;
i
++
)
{
if
(
!
SUCCEED
ED
(
IShellFolder2_GetDetailsOf
(
This
->
pSF2Parent
,
NULL
,
i
,
&
sd
)))
if
(
FAIL
ED
(
IShellFolder2_GetDetailsOf
(
This
->
pSF2Parent
,
NULL
,
i
,
&
sd
)))
break
;
lvColumn
.
fmt
=
sd
.
fmt
;
lvColumn
.
cx
=
sd
.
cxChar
*
8
;
/* chars->pixel */
...
...
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