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
41079866
Commit
41079866
authored
Mar 29, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Serialize NULL pointer interfaces correctly.
parent
a4ae750a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
tmarshal.c
dlls/oleaut32/tmarshal.c
+10
-3
No files found.
dlls/oleaut32/tmarshal.c
View file @
41079866
/*
* TYPELIB Marshaler
*
* Copyright 2002 Marcus Meissner
* Copyright 2002
,2005
Marcus Meissner
*
* The olerelay debug channel allows you to see calls marshalled by
* the typelib marshaller. It is not a generic COM relaying system.
...
...
@@ -169,12 +169,19 @@ _marshal_interface(marshal_state *buf, REFIID riid, LPUNKNOWN pUnk) {
DWORD
xsize
;
HRESULT
hres
;
hres
=
E_FAIL
;
if
(
!
pUnk
)
{
/* this is valid, if for instance we serialize
* a VT_DISPATCH with NULL ptr which apparently
* can happen. S_OK to make sure we continue
* serializing.
*/
ERR
(
"pUnk is NULL?
\n
"
);
goto
fail
;
xsize
=
0
;
return
xbuf_add
(
buf
,(
LPBYTE
)
&
xsize
,
sizeof
(
xsize
));
}
hres
=
E_FAIL
;
TRACE
(
"...%s...
\n
"
,
debugstr_guid
(
riid
));
hres
=
IUnknown_QueryInterface
(
pUnk
,
riid
,(
LPVOID
*
)
&
newiface
);
if
(
hres
)
{
...
...
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