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
16aadb27
Commit
16aadb27
authored
Dec 21, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Yet another workaround for broken apps in GlobalMemoryStatus.
parent
b7f617c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
heap.c
dlls/kernel32/heap.c
+13
-0
No files found.
dlls/kernel32/heap.c
View file @
16aadb27
...
...
@@ -1422,4 +1422,17 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
/* work around for broken photoshop 4 installer */
if
(
lpBuffer
->
dwAvailPhys
+
lpBuffer
->
dwAvailPageFile
>=
2U
*
1024
*
1024
*
1024
)
lpBuffer
->
dwAvailPageFile
=
2U
*
1024
*
1024
*
1024
-
lpBuffer
->
dwAvailPhys
-
1
;
/* limit page file size for really old binaries */
if
(
nt
->
OptionalHeader
.
MajorSubsystemVersion
<
4
)
{
if
(
lpBuffer
->
dwTotalPageFile
>
MAXLONG
)
lpBuffer
->
dwTotalPageFile
=
MAXLONG
;
if
(
lpBuffer
->
dwAvailPageFile
>
MAXLONG
)
lpBuffer
->
dwAvailPageFile
=
MAXLONG
;
}
TRACE
(
"Length %u, MemoryLoad %u, TotalPhys %lx, AvailPhys %lx,"
" TotalPageFile %lx, AvailPageFile %lx, TotalVirtual %lx, AvailVirtual %lx
\n
"
,
lpBuffer
->
dwLength
,
lpBuffer
->
dwMemoryLoad
,
lpBuffer
->
dwTotalPhys
,
lpBuffer
->
dwAvailPhys
,
lpBuffer
->
dwTotalPageFile
,
lpBuffer
->
dwAvailPageFile
,
lpBuffer
->
dwTotalVirtual
,
lpBuffer
->
dwAvailVirtual
);
}
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