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
3db8e19d
Commit
3db8e19d
authored
Feb 14, 1999
by
Guy Albertelli
Committed by
Alexandre Julliard
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GlobalSize return value for zero size block.
parent
3dbc7881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
global.c
memory/global.c
+4
-0
heap.c
memory/heap.c
+1
-1
No files found.
memory/global.c
View file @
3db8e19d
...
...
@@ -1370,6 +1370,8 @@ DWORD WINAPI GlobalSize32(
if
(
pintern
->
Magic
==
MAGIC_GLOBAL_USED
)
{
if
(
!
pintern
->
Pointer
)
/* handle case of GlobalAlloc( ??,0) */
return
0
;
retval
=
HeapSize
(
GetProcessHeap
(),
0
,
(
char
*
)(
pintern
->
Pointer
)
-
sizeof
(
HGLOBAL32
))
-
4
;
}
...
...
@@ -1380,6 +1382,8 @@ DWORD WINAPI GlobalSize32(
}
/* HeapUnlock(GetProcessHeap()); */
}
/* HeapSize returns 0xffffffff on failure */
if
(
retval
==
0xffffffff
)
retval
=
0
;
return
retval
;
}
...
...
memory/heap.c
View file @
3db8e19d
...
...
@@ -1204,7 +1204,7 @@ BOOL32 WINAPI HeapUnlock(
* HeapSize (KERNEL32.341)
* RETURNS
* Size in bytes of allocated memory
* 0: Failure
* 0
xffffffff
: Failure
*/
DWORD
WINAPI
HeapSize
(
HANDLE32
heap
,
/* [in] Handle of heap */
...
...
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