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
a030777f
Commit
a030777f
authored
Dec 03, 2007
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix error handling in _aligned_offset_realloc().
parent
00a961c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
heap.c
dlls/msvcrt/heap.c
+3
-2
No files found.
dlls/msvcrt/heap.c
View file @
a030777f
...
...
@@ -443,13 +443,14 @@ void * CDECL _aligned_offset_realloc(void *memblock, MSVCRT_size_t size,
/* It seems this function was called with an invalid pointer. Bail out. */
return
NULL
;
}
/* Adjust old_size to get amount of actual data in old block. */
old_size
-=
old_padding
;
if
(
old_size
<
0
)
if
(
old_size
<
old_padding
)
{
/* Shouldn't happen. Something's weird, so bail out. */
return
NULL
;
}
old_size
-=
old_padding
;
temp
=
MSVCRT_realloc
(
*
saved
,
size
+
alignment
+
sizeof
(
void
*
));
...
...
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