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
4932677e
Commit
4932677e
authored
Oct 31, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Allocate global arenas on the Win32 heap.
parent
222e406d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
global16.c
dlls/kernel32/global16.c
+7
-4
No files found.
dlls/kernel32/global16.c
View file @
4932677e
...
...
@@ -113,12 +113,15 @@ static GLOBALARENA *GLOBAL_GetArena( WORD sel, WORD selcount )
if
(((
sel
>>
__AHSHIFT
)
+
selcount
)
>
globalArenaSize
)
{
int
newsize
=
((
sel
>>
__AHSHIFT
)
+
selcount
+
0xff
)
&
~
0xff
;
GLOBALARENA
*
pNewArena
=
realloc
(
pGlobalArena
,
newsize
*
sizeof
(
GLOBALARENA
)
);
GLOBALARENA
*
pNewArena
;
if
(
pGlobalArena
)
pNewArena
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
pGlobalArena
,
newsize
*
sizeof
(
GLOBALARENA
)
);
else
pNewArena
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
newsize
*
sizeof
(
GLOBALARENA
)
);
if
(
!
pNewArena
)
return
0
;
pGlobalArena
=
pNewArena
;
memset
(
pGlobalArena
+
globalArenaSize
,
0
,
(
newsize
-
globalArenaSize
)
*
sizeof
(
GLOBALARENA
)
);
globalArenaSize
=
newsize
;
}
return
pGlobalArena
+
(
sel
>>
__AHSHIFT
);
...
...
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