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
1329f87d
Commit
1329f87d
authored
Jun 09, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- The typelib marshaler should only free the memory it actually allocated.
- Add special cases for two lesser used types that aren't sizeof(DWORD) sized.
parent
d1f59dba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
tmarshal.c
dlls/oleaut32/tmarshal.c
+8
-1
No files found.
dlls/oleaut32/tmarshal.c
View file @
1329f87d
...
@@ -455,6 +455,10 @@ static const IRpcProxyBufferVtbl tmproxyvtable = {
...
@@ -455,6 +455,10 @@ static const IRpcProxyBufferVtbl tmproxyvtable = {
int
int
_argsize
(
DWORD
vt
)
{
_argsize
(
DWORD
vt
)
{
switch
(
vt
)
{
switch
(
vt
)
{
case
VT_R8
:
return
sizeof
(
double
)
/
sizeof
(
DWORD
);
case
VT_CY
:
return
sizeof
(
CY
)
/
sizeof
(
DWORD
);
case
VT_DATE
:
case
VT_DATE
:
return
sizeof
(
DATE
)
/
sizeof
(
DWORD
);
return
sizeof
(
DATE
)
/
sizeof
(
DWORD
);
case
VT_VARIANT
:
case
VT_VARIANT
:
...
@@ -607,6 +611,9 @@ serialize_param(
...
@@ -607,6 +611,9 @@ serialize_param(
}
}
case
VT_PTR
:
{
case
VT_PTR
:
{
DWORD
cookie
;
DWORD
cookie
;
BOOL
derefhere
;
derefhere
=
(
tdesc
->
u
.
lptdesc
->
vt
!=
VT_USERDEFINED
);
if
(
debugout
)
TRACE_
(
olerelay
)(
"*"
);
if
(
debugout
)
TRACE_
(
olerelay
)(
"*"
);
/* Write always, so the other side knows when it gets a NULL pointer.
/* Write always, so the other side knows when it gets a NULL pointer.
...
@@ -620,7 +627,7 @@ serialize_param(
...
@@ -620,7 +627,7 @@ serialize_param(
return
S_OK
;
return
S_OK
;
}
}
hres
=
serialize_param
(
tinfo
,
writeit
,
debugout
,
dealloc
,
tdesc
->
u
.
lptdesc
,(
DWORD
*
)
*
arg
,
buf
);
hres
=
serialize_param
(
tinfo
,
writeit
,
debugout
,
dealloc
,
tdesc
->
u
.
lptdesc
,(
DWORD
*
)
*
arg
,
buf
);
if
(
de
alloc
)
HeapFree
(
GetProcessHeap
(),
0
,(
LPVOID
)
arg
);
if
(
de
refhere
&&
dealloc
)
HeapFree
(
GetProcessHeap
(),
0
,(
LPVOID
)
*
arg
);
return
hres
;
return
hres
;
}
}
case
VT_UNKNOWN
:
case
VT_UNKNOWN
:
...
...
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