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
ba3ca997
Commit
ba3ca997
authored
Jan 15, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compobj: Always set the IMalloc pointer in CoInitialize().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
464b74bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
compobj.c
dlls/compobj.dll16/compobj.c
+3
-7
No files found.
dlls/compobj.dll16/compobj.c
View file @
ba3ca997
...
...
@@ -253,8 +253,6 @@ DWORD WINAPI CoBuildVersion16(void)
*/
HRESULT
WINAPI
CoGetMalloc16
(
MEMCTX
context
,
SEGPTR
*
malloc
)
{
if
(
!
compobj_malloc
)
compobj_malloc
=
IMalloc16_Constructor
();
*
malloc
=
compobj_malloc
;
return
S_OK
;
}
...
...
@@ -275,17 +273,13 @@ HRESULT WINAPI CoCreateStandardMalloc16(MEMCTX context, SEGPTR *malloc)
*/
SEGPTR
WINAPI
CoMemAlloc
(
DWORD
size
,
MEMCTX
context
,
DWORD
unknown
)
{
SEGPTR
malloc
;
TRACE
(
"size %u, context %d, unknown %#x.
\n
"
,
size
,
context
,
unknown
);
if
(
context
!=
MEMCTX_TASK
)
FIXME
(
"Ignoring context %d.
\n
"
,
context
);
if
(
unknown
)
FIXME
(
"Ignoring unknown parameter %#x.
\n
"
,
unknown
);
if
(
CoGetMalloc16
(
0
,
&
malloc
))
return
0
;
return
call_IMalloc_Alloc
(
malloc
,
size
);
return
call_IMalloc_Alloc
(
compobj_malloc
,
size
);
}
/***********************************************************************
...
...
@@ -293,6 +287,8 @@ SEGPTR WINAPI CoMemAlloc(DWORD size, MEMCTX context, DWORD unknown)
*/
HRESULT
WINAPI
CoInitialize16
(
SEGPTR
malloc
)
{
if
(
!
malloc
)
CoCreateStandardMalloc16
(
MEMCTX_TASK
,
&
malloc
);
compobj_malloc
=
malloc
;
return
S_OK
;
}
...
...
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