mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[CMD]
Remove cmd_main(). Patch by Lee Schroeder. Thanks! CORE-7205 #resolve #comment Committed in r59101. svn path=/trunk/; revision=59101
This commit is contained in:
parent
318eca778f
commit
d14ba6a267
4 changed files with 3 additions and 11 deletions
|
@ -38,7 +38,6 @@ list(APPEND SOURCE
|
|||
internal.c
|
||||
label.c
|
||||
locale.c
|
||||
main.c
|
||||
memory.c
|
||||
misc.c
|
||||
mklink.c
|
||||
|
|
|
@ -1815,7 +1815,7 @@ static VOID Cleanup()
|
|||
/*
|
||||
* main function
|
||||
*/
|
||||
int cmd_main (int argc, const TCHAR *argv[])
|
||||
int _tmain(int argc, const TCHAR *argv[])
|
||||
{
|
||||
HANDLE hConsole;
|
||||
TCHAR startPath[MAX_PATH];
|
||||
|
@ -1828,7 +1828,7 @@ int cmd_main (int argc, const TCHAR *argv[])
|
|||
_tchdir(startPath);
|
||||
|
||||
SetFileApisToOEM();
|
||||
InputCodePage= 0;
|
||||
InputCodePage = 0;
|
||||
OutputCodePage = 0;
|
||||
|
||||
hConsole = CreateFile(_T("CONOUT$"), GENERIC_READ|GENERIC_WRITE,
|
||||
|
@ -1845,7 +1845,7 @@ int cmd_main (int argc, const TCHAR *argv[])
|
|||
CloseHandle(hConsole);
|
||||
}
|
||||
|
||||
InputCodePage= GetConsoleCP();
|
||||
InputCodePage = GetConsoleCP();
|
||||
OutputCodePage = GetConsoleOutputCP();
|
||||
CMD_ModuleHandle = GetModuleHandle(NULL);
|
||||
|
||||
|
|
|
@ -114,7 +114,6 @@ BOOL SubstituteForVars(TCHAR *Src, TCHAR *Dest);
|
|||
LPTSTR DoDelayedExpansion(LPTSTR Line);
|
||||
INT DoCommand(LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd);
|
||||
BOOL ReadLine(TCHAR *commandline, BOOL bMore);
|
||||
int cmd_main (int argc, const TCHAR *argv[]);
|
||||
|
||||
extern HANDLE CMD_ModuleHandle;
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#include "precomp.h"
|
||||
|
||||
int _tmain (int argc, const TCHAR *argv[])
|
||||
{
|
||||
return cmd_main(argc, argv);
|
||||
}
|
Loading…
Reference in a new issue