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
f4a535d6
Commit
f4a535d6
authored
May 06, 2004
by
Andrey Panov
Committed by
Alexandre Julliard
May 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In get_buffer_space() function, HeapReAlloc() will not allocate memory
if passed *buffer value is NULL.
parent
b41466b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
message.c
dlls/user/message.c
+6
-0
No files found.
dlls/user/message.c
View file @
f4a535d6
...
...
@@ -254,8 +254,14 @@ inline static BOOL check_string( LPCWSTR str, size_t size )
inline
static
void
*
get_buffer_space
(
void
**
buffer
,
size_t
size
)
{
void
*
ret
;
if
(
*
buffer
)
{
if
(
!
(
ret
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
*
buffer
,
size
)))
HeapFree
(
GetProcessHeap
(),
0
,
*
buffer
);
}
else
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
*
buffer
=
ret
;
return
ret
;
}
...
...
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