Ignore:
Timestamp:
Jan 6, 2000, 9:07:10 PM (26 years ago)
Author:
sandervl
Message:

some updates/minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winexebase.cpp

    r1833 r2345  
    1 /* $Id: winexebase.cpp,v 1.3 1999-11-24 19:31:23 sandervl Exp $ */
     1/* $Id: winexebase.cpp,v 1.4 2000-01-06 20:07:10 sandervl Exp $ */
    22
    33/*
     
    4848                 : Win32ImageBase(hInstance),
    4949                   fConsoleApp(FALSE),
    50                    cmdline(NULL)
     50                   cmdLineA(NULL), cmdLineW(NULL)
    5151{
    5252  WinExe = this;
     
    5858  Win32DllBase::deleteAll();
    5959  WinExe = NULL;
     60  if(cmdLineA)
     61        free(cmdLineA);
     62  if(cmdLineW)
     63        free(cmdLineW);
    6064}
    6165//******************************************************************************
     
    97101//******************************************************************************
    98102//******************************************************************************
     103void Win32ExeBase::setCommandLine(char *cline)
     104{
     105 ULONG cmdlength = strlen(cline) + 1;
     106
     107  cmdLineA = (LPSTR)malloc(cmdlength);
     108  strcpy(cmdLineA, cline);
     109  cmdLineW = (LPWSTR)malloc(cmdlength*sizeof(WCHAR));
     110  AsciiToUnicode(cmdLineA, cmdLineW);
     111}
     112//******************************************************************************
     113//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.