]> git.eshelyaron.com Git - emacs.git/commitdiff
(WinMain): Pass explicit environment block to
authorAndrew Innes <andrewi@gnu.org>
Tue, 26 Jan 1999 12:56:01 +0000 (12:56 +0000)
committerAndrew Innes <andrewi@gnu.org>
Tue, 26 Jan 1999 12:56:01 +0000 (12:56 +0000)
CreateProcess, to work around a bug in Windows 95/98.

nt/runemacs.c

index dc8d1bfe710e798b9bdb63a0eea16a81a01c40e3..c1b2895174844b4748b111e6f0ed741bd7dc34f5 100644 (file)
@@ -126,7 +126,7 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow)
   sec_attrs.bInheritHandle = FALSE;
 
   if (CreateProcess (NULL, new_cmdline, &sec_attrs, NULL, TRUE, priority_class,
-                    NULL, NULL, &start, &child))
+                    GetEnvironmentStrings (), NULL, &start, &child))
     {
       if (wait_for_child)
        {