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
4e1a4ecc
Commit
4e1a4ecc
authored
Aug 14, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Improved arena allocation in pool_alloc.
parent
1690044d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
storage.c
dlls/dbghelp/storage.c
+3
-3
No files found.
dlls/dbghelp/storage.c
View file @
4e1a4ecc
...
...
@@ -108,13 +108,13 @@ void* pool_alloc(struct pool* pool, size_t len)
}
}
size
=
max
(
pool
->
arena_size
,
len
+
sizeof
(
struct
pool_arena
)
);
arena
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
size
=
max
(
pool
->
arena_size
,
len
);
arena
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
+
sizeof
(
struct
pool_arena
)
);
if
(
!
arena
)
return
NULL
;
ret
=
arena
+
1
;
arena
->
current
=
(
char
*
)
ret
+
len
;
arena
->
end
=
(
char
*
)
arena
+
size
;
arena
->
end
=
(
char
*
)
ret
+
size
;
if
(
arena
->
current
+
16
>=
arena
->
end
)
list_add_tail
(
&
pool
->
arena_full
,
&
arena
->
entry
);
else
...
...
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