[1/3] kernel32/heap: Emulate Win9x if appropriate in GlobalMemoryStatusEx(). (resend)

Adam Martinson amartinson at codeweavers.com
Fri Jun 3 09:13:33 CDT 2011

On 06/03/2011 03:37 AM, Dmitry Timoshkov wrote:
> Adam Martinson<amartinson at codeweavers.com>  wrote:
>> The stuff in that block is for win2k+ mode only.  Win9x doesn't add
>> [Total|Avail]Phys to [Total|Avail]PageFile.  If wine is in win9x mode it
>> should behave like win9x, or it confuses old apps.  This is needed for
>> the 2nd patch, IIRC removing the photoshop 4 hack in
>> GlobalMemoryStatus() screws up programs like Adobe Illustrator 8 in
>> win98 mode without it.
> You probably need to do what not Ex version does and merge both implementations.
I don't think merging the implementations makes sense in this case, the 
only difference is 32-bit vs 64-bit output values.  
GlobalMemoryStatusEx() handles the basic behavior, GlobalMemoryStatus() 
handles rounding, I don't see a compelling reason to change that.

More information about the wine-devel mailing list