<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Opening up the debate again on the World of Warcraft ( WoW ) memory
patch.<br>
<br>
Some facts about WoW that may explain why the AppDB page is pretty
active and the wow patch for wine 0.9.12 was downloaded over 1000 times
from the Appdb page during a 4 week period.... Wow has approximately 6
million players that each pay about&nbsp; $90/year for the priviledge of
connecting to a WoW server (Realm). Assuming this figure is broadly
correct, Blizzard therefore receives $500,000,000/year just from this
game in subscriptions. ( This doesn't include the cost of buying the
game in the first place ). Perhaps Blizzard would like to employee a
programmer fulltime just to work on the wine project to help make Wow
run 100% ?.<br>
<br>
Anyway with the popularity of this game in mind, you can see why there
is a lot of interest in making this patch a thing of the past, so the
thousands of gamers who play this game on wine don't have to keep
applying a special patch. I would be grateful for any suggestions as to
how we could incorporate this patch so that it is no longer necessary.
I know we can't simply include the patch, but there must be some way
around this problem ? <br>
<br>
Below is an email regarding this partiicular problem, I would be
grateful for any comments that I can pass back to Jan Riewe. Thanks<br>
<br>
Regards<br>
Nick Law<br>
Appdb Maintainer - World of Warcraft 1.10.x<br>
<br>
Any feedback is much appreciated.<br>
<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">
<pre wrap="">Comment for 'World of Warcraft 1.10.x' added by jan riewe
-------------------------------------------------------
To reply to this email please use the link provided below.
DO NOT reply via your email client as it will not reach the person who wrote the comment
<a class="moz-txt-link-freetext"
 href="http://appdb.winehq.org/appview.php?versionId=4031&amp;mode=nested#Comment-12086">http://appdb.winehq.org/appview.php?versionId=4031&amp;mode=nested#Comment-12086</a>

Subject: RE: is this a workaround or a real patch?

is it posible to make a workaround with the user.reg? in the transgaming forum i`ve found something like :
[Software\\Wine\\AppDefaults\\WoW.exe\\Memory] 1148134976
"MemoryLayoutOverride"="0x10000000"

does it make sense on wine? (i am not so familiar to the wine syntax <b
 class="moz-txt-star"><span class="moz-txt-tag">*</span>shame on me<span
 class="moz-txt-tag">*</span></b>) is this perhaps the key to get rid of the patches and make the binary build of wine working with WoW also fine?
if this is a posibility perhaps you can post a full "user.reg" fix for those of us, who love the update feature.

and i just want to thank you ... your service this really great! wow is one of the biggest steps at the moment for gaming society to move more and more to an opensource system.<a
 class="moz-txt-link-freetext"
 href="http://appdb.winehq.org/preferences.php"></a>
</pre>
</div>
----<br>
<br>
--- wine/libs/wine/mmap.c.orig&nbsp;&nbsp;&nbsp; 2006-05-11 17:02:13.000000000 +0100<br>
+++ wine/libs/wine/mmap.c&nbsp;&nbsp;&nbsp; 2006-05-19 22:08:03.000000000 +0100<br>
@@ -183,7 +183,26 @@<br>
&nbsp;<br>
&nbsp;#endif&nbsp; /* (__svr4__ || __NetBSD__) &amp;&amp; !MAP_TRYFIXED */<br>
&nbsp;<br>
+static void *get_anon_mmap_null_address(size_t size)<br>
+{<br>
+&nbsp;&nbsp;&nbsp; static int got_override = 0;<br>
+&nbsp;&nbsp;&nbsp; static void *low_alloc_ptr = NULL;<br>
+&nbsp;&nbsp;&nbsp; void * current_low_alloc_ptr;<br>
+<br>
+&nbsp;&nbsp;&nbsp; if (!got_override)<br>
+&nbsp;&nbsp;&nbsp; {<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; low_alloc_ptr = (void*)0x10000000;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; got_override = 1;<br>
+&nbsp;&nbsp;&nbsp; }<br>
+ <br>
+&nbsp;&nbsp;&nbsp; current_low_alloc_ptr = low_alloc_ptr;<br>
+<br>
+&nbsp;&nbsp;&nbsp; if (low_alloc_ptr)<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; low_alloc_ptr += size;<br>
&nbsp;<br>
+&nbsp;&nbsp;&nbsp; return current_low_alloc_ptr;<br>
+&nbsp;&nbsp; }<br>
+ <br>
&nbsp;/***********************************************************************<br>
&nbsp; *&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wine_anon_mmap<br>
&nbsp; *<br>
@@ -213,6 +232,8 @@<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return start;<br>
&nbsp;#endif<br>
&nbsp;&nbsp;&nbsp;&nbsp; }<br>
+&nbsp;&nbsp;&nbsp;&nbsp; if ((start == NULL) &amp;&amp; !(flags &amp; MAP_FIXED))<br>
+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; start = get_anon_mmap_null_address(size);<br>
&nbsp;&nbsp;&nbsp;&nbsp; return mmap( start, size, prot, flags, get_fdzero(), 0 );<br>
&nbsp;}<br>
&nbsp;<br>
--- wine/loader/preloader.c.orig&nbsp;&nbsp;&nbsp; 2006-05-11 17:02:13.000000000 +0100<br>
+++ wine/loader/preloader.c&nbsp;&nbsp;&nbsp; 2006-05-19 22:14:22.000000000 +0100<br>
@@ -109,8 +109,8 @@<br>
&nbsp;static struct wine_preload_info preload_info[] =<br>
&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp; { (void *)0x00000000, 0x00110000 },&nbsp; /* DOS area */<br>
-&nbsp;&nbsp;&nbsp; { (void *)0x7ffe0000, 0x01020000 },&nbsp; /* shared user data + shared
heap */<br>
-&nbsp;&nbsp;&nbsp; { (void *)0x00110000, 0x1fef0000 },&nbsp; /* PE exe range (may be set
with WINEPRELOADRESERVE), defaults to 512mb */<br>
+&nbsp;&nbsp;&nbsp; { (void *)0x80000000, 0x01000000 },&nbsp; /* shared user data + shared
heap */<br>
+&nbsp;&nbsp;&nbsp; { (void *)0x10000000, 0x00f00000 },&nbsp; /* PE exe range (may be set
with WINEPRELOADRESERVE), defaults to 512mb */<br>
&nbsp;&nbsp;&nbsp;&nbsp; { 0, 0 }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* end of list */<br>
&nbsp;};<br>
&nbsp;<br>
<br>
<pre class="moz-signature" cols="72">-- 
Regards
Nick Law
Mobile: 07736 022165
Email: <a class="moz-txt-link-abbreviated" href="mailto:nick.law@mic-nucmed.co.uk">nick.law@mic-nucmed.co.uk</a>
 
Medical Imaging Consultancy Ltd (M.I.C)
Sales and Service of ADAC and IS2 Products
<a class="moz-txt-link-freetext" href="http://www.mic-nucmed.co.uk">http://www.mic-nucmed.co.uk</a></pre>
</body>
</html>