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
4b5f3c61
Commit
4b5f3c61
authored
Mar 29, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed VT_BSTR|VT_BYREF marshalling.
Added VT_I4|VT_BYREF marshalling.
parent
180f0405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
tmarshal.c
dlls/oleaut32/tmarshal.c
+21
-3
No files found.
dlls/oleaut32/tmarshal.c
View file @
4b5f3c61
...
...
@@ -525,6 +525,13 @@ serialize_param(
if
(
writeit
)
hres
=
xbuf_add
(
buf
,(
LPBYTE
)
arg
,
sizeof
(
DWORD
));
return
hres
;
case
VT_I4
|
VT_BYREF
:
hres
=
S_OK
;
if
(
debugout
)
TRACE_
(
olerelay
)(
"&0x%lx"
,
*
arg
);
if
(
writeit
)
hres
=
xbuf_add
(
buf
,(
LPBYTE
)(
DWORD
*
)
*
arg
,
sizeof
(
DWORD
));
/* do not dealloc at this time */
return
hres
;
case
VT_VARIANT
:
{
TYPEDESC
tdesc2
;
VARIANT
*
vt
=
(
VARIANT
*
)
arg
;
...
...
@@ -542,11 +549,11 @@ serialize_param(
return
hres
;
}
case
VT_BSTR
|
VT_BYREF
:
{
if
(
debugout
)
TRACE_
(
olerelay
)(
"[byref]'%s'"
,
*
arg
?
relaystr
(
*
((
BSTR
*
)
*
arg
))
:
"<bstr NULL>"
);
if
(
debugout
)
TRACE_
(
olerelay
)(
"[byref]'%s'"
,
*
(
BSTR
*
)
*
arg
?
relaystr
(
*
((
BSTR
*
)
*
arg
))
:
"<bstr NULL>"
);
if
(
writeit
)
{
/* ptr to ptr to magic widestring, basically */
BSTR
*
bstr
=
(
BSTR
*
)
*
arg
;
if
(
!
bstr
)
{
if
(
!
*
bstr
)
{
/* -1 means "null string" which is equivalent to empty string */
DWORD
fakelen
=
-
1
;
xbuf_add
(
buf
,
(
LPBYTE
)
&
fakelen
,
4
);
...
...
@@ -1082,6 +1089,16 @@ deserialize_param(
}
if
(
debugout
)
TRACE_
(
olerelay
)(
"%02lx"
,
*
arg
&
0xff
);
return
hres
;
case
VT_I4
|
VT_BYREF
:
hres
=
S_OK
;
if
(
alloc
)
*
arg
=
(
DWORD
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DWORD
));
if
(
readit
)
{
hres
=
xbuf_get
(
buf
,(
LPBYTE
)
*
arg
,
sizeof
(
DWORD
));
if
(
hres
)
ERR
(
"Failed to read integer 4 byte
\n
"
);
}
if
(
debugout
)
TRACE_
(
olerelay
)(
"&0x%lx"
,
*
(
DWORD
*
)
*
arg
);
return
hres
;
case
VT_BSTR
|
VT_BYREF
:
{
BSTR
**
bstr
=
(
BSTR
**
)
arg
;
WCHAR
*
str
;
...
...
@@ -1094,7 +1111,8 @@ deserialize_param(
return
hres
;
}
if
(
len
==
-
1
)
{
*
bstr
=
NULL
;
*
bstr
=
CoTaskMemAlloc
(
sizeof
(
BSTR
*
));
**
bstr
=
NULL
;
if
(
debugout
)
TRACE_
(
olerelay
)(
"<bstr NULL>"
);
}
else
{
str
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
+
sizeof
(
WCHAR
));
...
...
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