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
0a35f005
Commit
0a35f005
authored
Apr 20, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Simplify static IMalloc instance initialization.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c4106aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ifs.c
dlls/ole32/ifs.c
+4
-4
No files found.
dlls/ole32/ifs.c
View file @
0a35f005
...
...
@@ -47,17 +47,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(olemalloc);
/* set the vtable later */
static
const
IMallocVtbl
VT_IMalloc32
;
typedef
struct
{
struct
allocator
{
IMalloc
IMalloc_iface
;
IMallocSpy
*
pSpy
;
/* the spy when active */
DWORD
SpyedAllocationsLeft
;
/* number of spyed allocations left */
BOOL
SpyReleasePending
;
/* CoRevokeMallocSpy called with spyed allocations left*/
LPVOID
*
SpyedBlocks
;
/* root of the table */
DWORD
SpyedBlockTableLength
;
/* size of the table*/
}
_Malloc32
;
};
/* this is the static object instance */
static
_Malloc32
Malloc32
=
{{
&
VT_IMalloc32
},
NULL
,
0
,
0
,
NULL
,
0
};
static
struct
allocator
Malloc32
=
{
.
IMalloc_iface
.
lpVtbl
=
&
VT_IMalloc32
};
/* with a spy active all calls from pre to post methods are threadsafe */
static
CRITICAL_SECTION
IMalloc32_SpyCS
;
...
...
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