Changeset 2345 for trunk/src/kernel32/winexebase.cpp
- Timestamp:
- Jan 6, 2000, 9:07:10 PM (26 years ago)
- 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:23sandervl Exp $ */1 /* $Id: winexebase.cpp,v 1.4 2000-01-06 20:07:10 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 : Win32ImageBase(hInstance), 49 49 fConsoleApp(FALSE), 50 cmd line(NULL)50 cmdLineA(NULL), cmdLineW(NULL) 51 51 { 52 52 WinExe = this; … … 58 58 Win32DllBase::deleteAll(); 59 59 WinExe = NULL; 60 if(cmdLineA) 61 free(cmdLineA); 62 if(cmdLineW) 63 free(cmdLineW); 60 64 } 61 65 //****************************************************************************** … … 97 101 //****************************************************************************** 98 102 //****************************************************************************** 103 void 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.