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
7109423e
Commit
7109423e
authored
May 25, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allocate the shared heap inside the Win9x shared memory area.
parent
7163000d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
heap.c
dlls/kernel/heap.c
+4
-4
No files found.
dlls/kernel/heap.c
View file @
7109423e
...
...
@@ -54,8 +54,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
heap
);
/* address where we try to map the system heap */
#define SYSTEM_HEAP_BASE ((void*)0x
6543
0000)
#define SYSTEM_HEAP_SIZE 0x100000
/* Default heap size = 1
Mb */
#define SYSTEM_HEAP_BASE ((void*)0x
8000
0000)
#define SYSTEM_HEAP_SIZE 0x100000
0
/* Default heap size = 16
Mb */
static
HANDLE
systemHeap
;
/* globally shared heap */
...
...
@@ -87,10 +87,10 @@ inline static HANDLE HEAP_CreateSystemHeap(void)
HANDLE
map
,
event
;
/* create the system heap event first */
event
=
CreateEventA
(
NULL
,
TRUE
,
FALSE
,
"__
SystemHeapE
vent"
);
event
=
CreateEventA
(
NULL
,
TRUE
,
FALSE
,
"__
wine_system_heap_e
vent"
);
if
(
!
(
map
=
CreateFileMappingA
(
INVALID_HANDLE_VALUE
,
NULL
,
SEC_COMMIT
|
PAGE_READWRITE
,
0
,
SYSTEM_HEAP_SIZE
,
"__
SystemH
eap"
)))
return
0
;
0
,
SYSTEM_HEAP_SIZE
,
"__
wine_system_h
eap"
)))
return
0
;
created
=
(
GetLastError
()
!=
ERROR_ALREADY_EXISTS
);
if
(
!
(
base
=
MapViewOfFileEx
(
map
,
FILE_MAP_ALL_ACCESS
,
0
,
0
,
0
,
SYSTEM_HEAP_BASE
)))
...
...
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