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
1f34fdff
Commit
1f34fdff
authored
Nov 21, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Nov 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: CoGetInterfaceAndReleaseStream shouldn't crash when passed a NULL stream.
parent
267e660b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
marshal.c
dlls/ole32/marshal.c
+1
-0
marshal.c
dlls/ole32/tests/marshal.c
+11
-0
No files found.
dlls/ole32/marshal.c
View file @
1f34fdff
...
...
@@ -1815,6 +1815,7 @@ HRESULT WINAPI CoGetInterfaceAndReleaseStream(LPSTREAM pStm, REFIID riid,
TRACE
(
"(%p, %s, %p)
\n
"
,
pStm
,
debugstr_guid
(
riid
),
ppv
);
if
(
!
pStm
)
return
E_INVALIDARG
;
hres
=
CoUnmarshalInterface
(
pStm
,
riid
,
ppv
);
IStream_Release
(
pStm
);
return
hres
;
...
...
dlls/ole32/tests/marshal.c
View file @
1f34fdff
...
...
@@ -2253,6 +2253,15 @@ static void test_marshal_HENHMETAFILE(void)
HENHMETAFILE_UserFree
(
&
flags
,
&
hemf2
);
}
static
void
test_CoGetInterfaceAndReleaseStream
(
void
)
{
HRESULT
hr
;
IUnknown
*
pUnk
;
hr
=
CoGetInterfaceAndReleaseStream
(
NULL
,
&
IID_IUnknown
,
(
void
**
)
&
pUnk
);
ok
(
hr
==
E_INVALIDARG
,
"hr %08x
\n
"
,
hr
);
}
START_TEST
(
marshal
)
{
WNDCLASS
wndclass
;
...
...
@@ -2313,6 +2322,8 @@ START_TEST(marshal)
test_marshal_HGLOBAL
();
test_marshal_HENHMETAFILE
();
test_CoGetInterfaceAndReleaseStream
();
CoUninitialize
();
return
;
...
...
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