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
e68833a8
Commit
e68833a8
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/tests: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6e2902d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
marshal.c
dlls/dispex/tests/marshal.c
+5
-6
No files found.
dlls/dispex/tests/marshal.c
View file @
e68833a8
...
...
@@ -86,7 +86,7 @@ static DWORD CALLBACK host_object_proc(LPVOID p)
DispatchMessageA
(
&
msg
);
}
HeapFree
(
GetProcessHeap
(),
0
,
data
);
free
(
data
);
CoUninitialize
();
...
...
@@ -97,7 +97,7 @@ static DWORD start_host_object2(IStream *stream, REFIID riid, IUnknown *object,
{
DWORD
tid
=
0
,
ret
;
HANDLE
events
[
2
];
struct
host_object_data
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
));
struct
host_object_data
*
data
=
malloc
(
sizeof
(
*
data
));
data
->
stream
=
stream
;
data
->
iid
=
*
riid
;
...
...
@@ -179,9 +179,8 @@ static ULONG WINAPI dispex_Release(IDispatchEx* iface)
ULONG
refs
=
InterlockedDecrement
(
&
This
->
refs
);
trace
(
"Release
\n
"
);
if
(
!
refs
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
free
(
This
);
return
refs
;
}
...
...
@@ -350,7 +349,7 @@ static IDispatchEx *dispex_create(void)
{
dispex
*
This
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
malloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
NULL
;
This
->
IDispatchEx_iface
.
lpVtbl
=
&
dispex_vtable
;
This
->
refs
=
1
;
...
...
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