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
71a3fe3c
Commit
71a3fe3c
authored
Oct 23, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove some useless null checks.
parent
88136e68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
olefont.c
dlls/oleaut32/olefont.c
+1
-10
olefont.c
dlls/oleaut32/tests/olefont.c
+3
-0
No files found.
dlls/oleaut32/olefont.c
View file @
71a3fe3c
...
@@ -480,15 +480,6 @@ static HRESULT WINAPI OLEFontImpl_QueryInterface(
...
@@ -480,15 +480,6 @@ static HRESULT WINAPI OLEFontImpl_QueryInterface(
OLEFontImpl
*
this
=
(
OLEFontImpl
*
)
iface
;
OLEFontImpl
*
this
=
(
OLEFontImpl
*
)
iface
;
TRACE
(
"(%p)->(%s, %p)
\n
"
,
this
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
this
,
debugstr_guid
(
riid
),
ppvObject
);
/*
* Perform a sanity check on the parameters.
*/
if
(
(
this
==
0
)
||
(
ppvObject
==
0
)
)
return
E_INVALIDARG
;
/*
* Initialize the return parameter.
*/
*
ppvObject
=
0
;
*
ppvObject
=
0
;
/*
/*
...
@@ -1143,7 +1134,7 @@ static HRESULT WINAPI OLEFontImpl_IsEqual(
...
@@ -1143,7 +1134,7 @@ static HRESULT WINAPI OLEFontImpl_IsEqual(
INT
ret
;
INT
ret
;
INT
left_len
,
right_len
;
INT
left_len
,
right_len
;
if
(
(
iface
==
NULL
)
||
(
pFontOther
==
NULL
)
)
if
(
pFontOther
==
NULL
)
return
E_POINTER
;
return
E_POINTER
;
else
if
(
left
->
description
.
cySize
.
s
.
Lo
!=
right
->
description
.
cySize
.
s
.
Lo
)
else
if
(
left
->
description
.
cySize
.
s
.
Lo
!=
right
->
description
.
cySize
.
s
.
Lo
)
return
S_FALSE
;
return
S_FALSE
;
...
...
dlls/oleaut32/tests/olefont.c
View file @
71a3fe3c
...
@@ -127,6 +127,9 @@ static void test_QueryInterface(void)
...
@@ -127,6 +127,9 @@ static void test_QueryInterface(void)
IFont
*
font
=
NULL
;
IFont
*
font
=
NULL
;
LONG
ret
;
LONG
ret
;
hres
=
pOleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
NULL
);
ok
(
hres
==
E_POINTER
,
"got 0x%08x
\n
"
,
hres
);
hres
=
pOleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
&
pvObj
);
hres
=
pOleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
&
pvObj
);
font
=
pvObj
;
font
=
pvObj
;
...
...
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