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
568e90ad
Commit
568e90ad
authored
Mar 22, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Avoid leaking previous buffer in get_buffer_space().
parent
054a95a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
message.c
dlls/win32u/message.c
+4
-1
No files found.
dlls/win32u/message.c
View file @
568e90ad
...
@@ -473,7 +473,10 @@ static inline void *get_buffer_space( void **buffer, size_t size, size_t *buffer
...
@@ -473,7 +473,10 @@ static inline void *get_buffer_space( void **buffer, size_t size, size_t *buffer
{
{
if
(
*
buffer_size
<
size
)
if
(
*
buffer_size
<
size
)
{
{
*
buffer
=
malloc
(
size
);
void
*
new
;
if
(
!
(
new
=
realloc
(
*
buffer
,
size
)))
return
NULL
;
*
buffer
=
new
;
*
buffer_size
=
size
;
*
buffer_size
=
size
;
}
}
return
*
buffer
;
return
*
buffer
;
...
...
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