[PATCH] kernel32: return copy of environment block inGetEnvironmentStringsW

Dmitry Timoshkov dmitry at codeweavers.com
Sat Mar 31 23:52:26 CDT 2007


"Peter Beutner" <p.beutner at gmx.net> wrote:

> Make behaviour consistent with GetEnvironmentStringsA.
> Prevents crash for confused applications which first call
> GetEnvironmentStringsW and then want to free it with FreeEnvironmentStringsA.

This patch is wrong: http://blogs.msdn.com/matt_pietrek/archive/2004/08/25/220330.aspx
Probably an exception handler should be added inside of RtlFreeHeap instead.

-- 
Dmitry.



More information about the wine-devel mailing list