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
70ff521a
Commit
70ff521a
authored
Mar 15, 2007
by
Fabian Bieler
Committed by
Alexandre Julliard
Mar 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: GlobalMemoryStatusEx: always report at least 1 byte of virtual memory…
kernel32: GlobalMemoryStatusEx: always report at least 1 byte of virtual memory even if none is available.
parent
e1c6c97f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
heap.c
dlls/kernel32/heap.c
+7
-0
No files found.
dlls/kernel32/heap.c
View file @
70ff521a
...
...
@@ -1312,6 +1312,13 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
lpmemex
->
ullTotalPageFile
+=
lpmemex
->
ullTotalPhys
;
lpmemex
->
ullAvailPageFile
+=
lpmemex
->
ullAvailPhys
;
/* Titan Quest refuses to run if TotalPageFile <= ullTotalPhys */
if
(
lpmemex
->
ullTotalPageFile
==
lpmemex
->
ullTotalPhys
)
{
lpmemex
->
ullTotalPhys
-=
1
;
lpmemex
->
ullAvailPhys
-=
1
;
}
/* FIXME: should do something for other systems */
GetSystemInfo
(
&
si
);
lpmemex
->
ullTotalVirtual
=
(
char
*
)
si
.
lpMaximumApplicationAddress
-
(
char
*
)
si
.
lpMinimumApplicationAddress
;
...
...
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