http://bugs.winehq.org/show_bug.cgi?id=33330
--- Comment #2 from Ryan Turner zdbiohazard2@gmail.com 2013-04-04 13:25:35 CDT --- Created attachment 44090 --> http://bugs.winehq.org/attachment.cgi?id=44090 Switch GetSystemInfo back to using SystemBasicInformation for HighestUserAddress
It's definitely HighestUserAddress. The attached patch switches GetSystemInfo back to using SystemBasicInformation for HighestUserAddress, and the problem goes away.
The patch also adds a call to FIXME() to show what SystemBasicInformation and system_info are when GetSystemInfo is called, and as this log snippet shows; SystemBasicInformation always has 0x7FFEFFFFFFFEFFFF, and system_info changes all over the place, including being zero sometimes.
fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7B8B60000033F370 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x0 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7B82000000000001 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7B86A1273556DD18 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF6E00010F7587676 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x0 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF768C9C2355612F8 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF6E00010F7587676 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF6E00010F7587676 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x1100003B5BF7B0 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7B87E9BB3556D4C8 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x0 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7B8200007B8B76A8 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0x7BC383373556D7C8 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF6E00010F7587676 fixme:reg:GetSystemInfo HighestUserAddress: sbi:0x7FFEFFFFFFFEFFFF system_info:0xF6E000100001EA78