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
cf173911
Commit
cf173911
authored
Jan 11, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole: ITypeInfo::Invoke stack overwrite fix.
Have enough stack space up to even VT_VARIANTs, fixes a stack corruption.
parent
bce90cfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
typelib.c
dlls/oleaut32/typelib.c
+2
-2
No files found.
dlls/oleaut32/typelib.c
View file @
cf173911
...
@@ -5205,7 +5205,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
...
@@ -5205,7 +5205,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
VARIANT
varresult
;
VARIANT
varresult
;
SHORT
missing_param_offset
=
func_desc
->
cParams
;
SHORT
missing_param_offset
=
func_desc
->
cParams
;
SHORT
missing_params
=
0
;
SHORT
missing_params
=
0
;
void
*
retval
;
/* pointer for storing byref retvals in */
VARIANT
retval
;
/* pointer for storing byref retvals in */
hres
=
S_OK
;
hres
=
S_OK
;
for
(
i
=
0
;
i
<
func_desc
->
cParams
;
i
++
)
for
(
i
=
0
;
i
<
func_desc
->
cParams
;
i
++
)
...
@@ -5238,7 +5238,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
...
@@ -5238,7 +5238,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
arg
=
prgpvarg
[
i
]
=
&
rgvarg
[
i
];
arg
=
prgpvarg
[
i
]
=
&
rgvarg
[
i
];
memset
(
arg
,
0
,
sizeof
(
*
arg
));
memset
(
arg
,
0
,
sizeof
(
*
arg
));
V_VT
(
arg
)
=
rgvt
[
i
];
V_VT
(
arg
)
=
rgvt
[
i
];
retval
=
NULL
;
memset
(
&
retval
,
0
,
sizeof
(
retval
))
;
V_BYREF
(
arg
)
=
&
retval
;
V_BYREF
(
arg
)
=
&
retval
;
}
}
else
else
...
...
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