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
8cd4d9fb
Commit
8cd4d9fb
authored
Apr 28, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Check for null pointer in IMoniker_BindToObject().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a46e47f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
mediacatenum.c
dlls/devenum/mediacatenum.c
+3
-0
devenum.c
dlls/devenum/tests/devenum.c
+3
-0
No files found.
dlls/devenum/mediacatenum.c
View file @
8cd4d9fb
...
...
@@ -444,6 +444,9 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(IMoniker *iface, IBi
TRACE
(
"(%p)->(%p, %p, %s, %p)
\n
"
,
This
,
pbc
,
pmkToLeft
,
debugstr_guid
(
riidResult
),
ppvResult
);
if
(
!
ppvResult
)
return
E_POINTER
;
VariantInit
(
&
var
);
*
ppvResult
=
NULL
;
...
...
dlls/devenum/tests/devenum.c
View file @
8cd4d9fb
...
...
@@ -134,6 +134,9 @@ static void test_devenum(IBindCtx *bind_ctx)
}
}
hr
=
IMoniker_BindToObject
(
moniker
,
bind_ctx
,
NULL
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %#x
\n
"
,
hr
);
IPropertyBag_Release
(
prop_bag
);
IMoniker_Release
(
moniker
);
}
...
...
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