msvcrt: Initialize environ on DLL load. (try 2)

Andrew Nguyen anguyen at codeweavers.com
Thu Sep 30 01:24:13 CDT 2010


The tests now explicitly load the environ variables with 
GetProcAddress. Some additional testing showed that _wenviron is only 
initialized when calling Unicode environment functions, so the patch 
now accounts for this behavior.
---
 dlls/msvcrt/data.c          |   15 +++--
 dlls/msvcrt/environ.c       |   12 +---
 dlls/msvcrt/tests/environ.c |  131 ++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 142 insertions(+), 16 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcrt-Initialize-the-environ-global-variables-on-DLL-.txt
Type: text/x-patch
Size: 8313 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100930/f6a38d41/attachment.bin>


More information about the wine-patches mailing list