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
d3217872
Commit
d3217872
authored
Dec 23, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Allow the marshaling/unmarshaling of NULL interfaces for IClassFactory.
parent
67386352
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
oleproxy.c
dlls/ole32/oleproxy.c
+13
-1
No files found.
dlls/ole32/oleproxy.c
View file @
d3217872
...
...
@@ -181,12 +181,19 @@ CFStub_Invoke(
FIXME
(
"Failed to create stream on hglobal
\n
"
);
goto
getbuffer
;
}
hres
=
IStream_Write
(
pStm
,
&
ppv
,
sizeof
(
ppv
),
NULL
);
if
(
hres
)
{
ERR
(
"IStream_Write failed, 0x%08x
\n
"
,
hres
);
goto
getbuffer
;
}
if
(
ppv
)
{
hres
=
CoMarshalInterface
(
pStm
,
&
iid
,
ppv
,
0
,
NULL
,
0
);
IUnknown_Release
((
IUnknown
*
)
ppv
);
IUnknown_Release
(
ppv
);
if
(
hres
)
{
FIXME
(
"CoMarshalInterface failed, %x!
\n
"
,
hres
);
goto
getbuffer
;
}
}
hres
=
IStream_Stat
(
pStm
,
&
ststg
,
0
);
if
(
hres
)
{
FIXME
(
"Stat failed.
\n
"
);
...
...
@@ -401,11 +408,16 @@ static HRESULT WINAPI CFProxy_CreateInstance(
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
return
hres
;
}
hres
=
IStream_Read
(
pStream
,
ppv
,
sizeof
(
*
ppv
),
NULL
);
if
(
hres
!=
S_OK
)
hres
=
E_FAIL
;
else
if
(
*
ppv
)
{
hres
=
CoUnmarshalInterface
(
pStream
,
riid
,
ppv
);
}
IStream_Release
(
pStream
);
/* Does GlobalFree hGlobal too. */
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
...
...
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