Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
81a6be56
Commit
81a6be56
authored
Sep 10, 2011
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix overflow on 32-bits systems.
parent
d177a97d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
heap.c
dlls/kernel32/heap.c
+6
-6
No files found.
dlls/kernel32/heap.c
View file @
81a6be56
...
...
@@ -1204,17 +1204,17 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
/* new style /proc/meminfo ... */
if
(
sscanf
(
buffer
,
"MemTotal: %lu"
,
&
total
))
lpmemex
->
ullTotalPhys
=
total
*
1024
;
lpmemex
->
ullTotalPhys
=
(
ULONG64
)
total
*
1024
;
if
(
sscanf
(
buffer
,
"MemFree: %lu"
,
&
free
))
lpmemex
->
ullAvailPhys
=
free
*
1024
;
lpmemex
->
ullAvailPhys
=
(
ULONG64
)
free
*
1024
;
if
(
sscanf
(
buffer
,
"SwapTotal: %lu"
,
&
total
))
lpmemex
->
ullTotalPageFile
=
total
*
1024
;
lpmemex
->
ullTotalPageFile
=
(
ULONG64
)
total
*
1024
;
if
(
sscanf
(
buffer
,
"SwapFree: %lu"
,
&
free
))
lpmemex
->
ullAvailPageFile
=
free
*
1024
;
lpmemex
->
ullAvailPageFile
=
(
ULONG64
)
free
*
1024
;
if
(
sscanf
(
buffer
,
"Buffers: %lu"
,
&
buffers
))
lpmemex
->
ullAvailPhys
+=
buffers
*
1024
;
lpmemex
->
ullAvailPhys
+=
(
ULONG64
)
buffers
*
1024
;
if
(
sscanf
(
buffer
,
"Cached: %lu"
,
&
cached
))
lpmemex
->
ullAvailPhys
+=
cached
*
1024
;
lpmemex
->
ullAvailPhys
+=
(
ULONG64
)
cached
*
1024
;
}
fclose
(
f
);
}
...
...
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