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
a6e2902d
Commit
a6e2902d
authored
Apr 08, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dispex: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b4009e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
usrmarshal.c
dlls/dispex/usrmarshal.c
+2
-2
No files found.
dlls/dispex/usrmarshal.c
View file @
a6e2902d
...
...
@@ -134,7 +134,7 @@ HRESULT __RPC_STUB IDispatchEx_InvokeEx_Stub(IDispatchEx* This, DISPID id, LCID
any on return. */
if
(
byref_args
)
{
vt_list
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pdp
->
cArgs
*
sizeof
(
vt_list
[
0
]));
vt_list
=
malloc
(
pdp
->
cArgs
*
sizeof
(
vt_list
[
0
]));
if
(
!
vt_list
)
return
E_OUTOFMEMORY
;
for
(
arg
=
0
;
arg
<
pdp
->
cArgs
;
arg
++
)
vt_list
[
arg
]
=
V_VT
(
pdp
->
rgvarg
+
arg
);
...
...
@@ -166,6 +166,6 @@ HRESULT __RPC_STUB IDispatchEx_InvokeEx_Stub(IDispatchEx* This, DISPID id, LCID
for
(
arg
=
0
;
arg
<
byref_args
;
arg
++
)
VariantInit
(
pdp
->
rgvarg
+
ref_idx
[
arg
]);
HeapFree
(
GetProcessHeap
(),
0
,
vt_list
);
free
(
vt_list
);
return
hr
;
}
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