[Bug 24536] New: environ is NULL under Wine but not on real Windows

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 27 03:55:48 CDT 2010


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 at winehq.org
        ReportedBy: simon at josefsson.org


Running the program below prints NULL under Wine but non-NULL under real
Windows.

Thanks,
Simon

jas at 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 at mocca:~$ i686-w64-mingw32-gcc -o environ-wine.exe environ-wine.c
jas at mocca:~$ wine ./environ-wine.exe 
NULL
jas at mocca:~$ wine --version
wine-1.2
jas at mocca:~$

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list