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
0c07d3ba
Commit
0c07d3ba
authored
Oct 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use FAILED instead of !SUCCEEDED.
parent
704ebf28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
typelib.c
dlls/oleaut32/typelib.c
+3
-3
typelib2.c
dlls/oleaut32/typelib2.c
+1
-1
variant.c
dlls/oleaut32/variant.c
+2
-2
No files found.
dlls/oleaut32/typelib.c
View file @
0c07d3ba
...
...
@@ -394,7 +394,7 @@ HRESULT WINAPI LoadTypeLibEx(
/* else fall-through */
case
REGKIND_REGISTER
:
if
(
!
SUCCEED
ED
(
res
=
RegisterTypeLib
(
*
pptLib
,
(
LPOLESTR
)
szPath
,
NULL
)))
if
(
FAIL
ED
(
res
=
RegisterTypeLib
(
*
pptLib
,
(
LPOLESTR
)
szPath
,
NULL
)))
{
IUnknown_Release
(
*
pptLib
);
*
pptLib
=
0
;
...
...
@@ -491,7 +491,7 @@ HRESULT WINAPI RegisterTypeLib(
if
(
ptlib
==
NULL
||
szFullPath
==
NULL
)
return
E_INVALIDARG
;
if
(
!
SUCCEED
ED
(
ITypeLib_GetLibAttr
(
ptlib
,
&
attr
)))
if
(
FAIL
ED
(
ITypeLib_GetLibAttr
(
ptlib
,
&
attr
)))
return
E_FAIL
;
get_typelib_key
(
&
attr
->
guid
,
attr
->
wMajorVerNum
,
attr
->
wMinorVerNum
,
keyName
);
...
...
@@ -6449,7 +6449,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
ref_type
->
pImpTLInfo
->
lcid
,
&
pTLib
);
if
(
!
SUCCEED
ED
(
result
))
{
if
(
FAIL
ED
(
result
))
{
BSTR
libnam
=
SysAllocString
(
ref_type
->
pImpTLInfo
->
name
);
result
=
LoadTypeLib
(
libnam
,
&
pTLib
);
SysFreeString
(
libnam
);
...
...
dlls/oleaut32/typelib2.c
View file @
0c07d3ba
...
...
@@ -1349,7 +1349,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo(
* implementation of ITypeInfo. So we need to do the following...
*/
res
=
ITypeInfo_GetContainingTypeLib
(
pTInfo
,
&
container
,
&
index
);
if
(
!
SUCCEED
ED
(
res
))
{
if
(
FAIL
ED
(
res
))
{
TRACE
(
"failed to find containing typelib.
\n
"
);
return
res
;
}
...
...
dlls/oleaut32/variant.c
View file @
0c07d3ba
...
...
@@ -5673,14 +5673,14 @@ HRESULT WINAPI VarPow(LPVARIANT left, LPVARIANT right, LPVARIANT result)
}
hr
=
VariantChangeType
(
&
dl
,
left
,
0
,
resvt
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
ERR
(
"Could not change passed left argument to VT_R8, handle it differently.
\n
"
);
hr
=
E_FAIL
;
goto
end
;
}
hr
=
VariantChangeType
(
&
dr
,
right
,
0
,
resvt
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
ERR
(
"Could not change passed right argument to VT_R8, handle it differently.
\n
"
);
hr
=
E_FAIL
;
goto
end
;
...
...
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