Ignore:
Timestamp:
Dec 11, 1999, 2:35:52 PM (26 years ago)
Author:
sandervl
Message:

JW's GetMainArgs fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/msvcrt.cpp

    r1896 r2056  
    1 /* $Id: msvcrt.cpp,v 1.8 1999-11-30 19:44:04 sandervl Exp $ */
     1/* $Id: msvcrt.cpp,v 1.9 1999-12-11 13:35:52 sandervl Exp $ */
    22
    33/*
     
    1313#include <odinwrap.h>
    1414#include <wchar.h>
    15 #include <except.h>
    1615#include <heapstring.h>
    1716#include <crtdll.h>
     
    674673
    675674        i=0;xargv=NULL;xargc=0;afterlastspace=0;
     675/*
    676676        while (cmdline[i]) {
    677677                if (cmdline[i]==' ') {
     
    697697        xargv[xargc-1] = HEAP_strdupA( GetProcessHeap(), 0,
    698698                                       cmdline+afterlastspace);
     699*/
    699700        MSVCRT___argc   = xargc;
    700701        *argc           = xargc;
    701702        MSVCRT___argv   = xargv;
    702703        *argv           = xargv;
     704        MSVCRT__environ = *environ = GetEnvironmentStringsA();
    703705        dprintf(("MSVCRT: GetMainArgs end\n"));
    704         MSVCRT__environ = *environ = GetEnvironmentStringsA();
    705706        return 0;
    706707}
Note: See TracChangeset for help on using the changeset viewer.