http://bugs.winehq.org/show_bug.cgi?id=7794
------- Additional Comments From p.beutner@gmx.net 2007-31-03 13:50 ------- Created an attachment (id=5588) --> (http://bugs.winehq.org/attachment.cgi?id=5588&action=view) make GetEnvironmentStringsW match windows behaviour
0009:Call kernel32.GetEnvironmentStringsW() ret=0077952f 0009:Ret kernel32.GetEnvironmentStringsW() retval=00220000 ret=0077952f ... 0009:Call kernel32.FreeEnvironmentStringsA(00220000) ret=007795e6
looks like the programmer got things mixed up a bit :p. As wine handles the A/W variants of that function different things explode ;). But obviously it works on windows so this patch makes it work on wine too.