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
c43fdb75
Commit
c43fdb75
authored
Apr 13, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GlobalReAlloc returns 0 on failure.
parent
e529d360
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
global.c
memory/global.c
+6
-3
No files found.
memory/global.c
View file @
c43fdb75
...
@@ -1251,14 +1251,17 @@ HGLOBAL WINAPI GlobalReAlloc(
...
@@ -1251,14 +1251,17 @@ HGLOBAL WINAPI GlobalReAlloc(
hnew
=
hmem
;
hnew
=
hmem
;
if
(
pintern
->
Pointer
)
if
(
pintern
->
Pointer
)
{
{
palloc
=
HeapReAlloc
(
heap
,
heap_flags
,
if
((
palloc
=
HeapReAlloc
(
heap
,
heap_flags
,
(
char
*
)
pintern
->
Pointer
-
sizeof
(
HGLOBAL
),
(
char
*
)
pintern
->
Pointer
-
sizeof
(
HGLOBAL
),
size
+
sizeof
(
HGLOBAL
)
);
size
+
sizeof
(
HGLOBAL
)))
==
NULL
)
return
0
;
/* Block still valid */
pintern
->
Pointer
=
(
char
*
)
palloc
+
sizeof
(
HGLOBAL
);
pintern
->
Pointer
=
(
char
*
)
palloc
+
sizeof
(
HGLOBAL
);
}
}
else
else
{
{
palloc
=
HeapAlloc
(
heap
,
heap_flags
,
size
+
sizeof
(
HGLOBAL
));
if
((
palloc
=
HeapAlloc
(
heap
,
heap_flags
,
size
+
sizeof
(
HGLOBAL
)))
==
NULL
)
return
0
;
*
(
HGLOBAL
*
)
palloc
=
hmem
;
*
(
HGLOBAL
*
)
palloc
=
hmem
;
pintern
->
Pointer
=
(
char
*
)
palloc
+
sizeof
(
HGLOBAL
);
pintern
->
Pointer
=
(
char
*
)
palloc
+
sizeof
(
HGLOBAL
);
}
}
...
...
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