http://bugs.winehq.org/show_bug.cgi?id=24536
Summary: environ is NULL under Wine but not on real Windows Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: simon@josefsson.org
Running the program below prints NULL under Wine but non-NULL under real Windows.
Thanks, Simon
jas@mocca:~$ cat environ-wine.c #include <stdio.h> #include <stddef.h> #include <stdlib.h>
int main (void) { if (environ == NULL) puts("NULL"); else puts("non-NULL"); return 0; } jas@mocca:~$ i686-w64-mingw32-gcc -o environ-wine.exe environ-wine.c jas@mocca:~$ wine ./environ-wine.exe NULL jas@mocca:~$ wine --version wine-1.2 jas@mocca:~$