mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +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
|
internal.c
|
||||||
label.c
|
label.c
|
||||||
locale.c
|
locale.c
|
||||||
main.c
|
|
||||||
memory.c
|
memory.c
|
||||||
misc.c
|
misc.c
|
||||||
mklink.c
|
mklink.c
|
||||||
|
|
|
@ -1815,7 +1815,7 @@ static VOID Cleanup()
|
||||||
/*
|
/*
|
||||||
* main function
|
* main function
|
||||||
*/
|
*/
|
||||||
int cmd_main (int argc, const TCHAR *argv[])
|
int _tmain(int argc, const TCHAR *argv[])
|
||||||
{
|
{
|
||||||
HANDLE hConsole;
|
HANDLE hConsole;
|
||||||
TCHAR startPath[MAX_PATH];
|
TCHAR startPath[MAX_PATH];
|
||||||
|
@ -1828,7 +1828,7 @@ int cmd_main (int argc, const TCHAR *argv[])
|
||||||
_tchdir(startPath);
|
_tchdir(startPath);
|
||||||
|
|
||||||
SetFileApisToOEM();
|
SetFileApisToOEM();
|
||||||
InputCodePage= 0;
|
InputCodePage = 0;
|
||||||
OutputCodePage = 0;
|
OutputCodePage = 0;
|
||||||
|
|
||||||
hConsole = CreateFile(_T("CONOUT$"), GENERIC_READ|GENERIC_WRITE,
|
hConsole = CreateFile(_T("CONOUT$"), GENERIC_READ|GENERIC_WRITE,
|
||||||
|
@ -1845,7 +1845,7 @@ int cmd_main (int argc, const TCHAR *argv[])
|
||||||
CloseHandle(hConsole);
|
CloseHandle(hConsole);
|
||||||
}
|
}
|
||||||
|
|
||||||
InputCodePage= GetConsoleCP();
|
InputCodePage = GetConsoleCP();
|
||||||
OutputCodePage = GetConsoleOutputCP();
|
OutputCodePage = GetConsoleOutputCP();
|
||||||
CMD_ModuleHandle = GetModuleHandle(NULL);
|
CMD_ModuleHandle = GetModuleHandle(NULL);
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,6 @@ BOOL SubstituteForVars(TCHAR *Src, TCHAR *Dest);
|
||||||
LPTSTR DoDelayedExpansion(LPTSTR Line);
|
LPTSTR DoDelayedExpansion(LPTSTR Line);
|
||||||
INT DoCommand(LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd);
|
INT DoCommand(LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd);
|
||||||
BOOL ReadLine(TCHAR *commandline, BOOL bMore);
|
BOOL ReadLine(TCHAR *commandline, BOOL bMore);
|
||||||
int cmd_main (int argc, const TCHAR *argv[]);
|
|
||||||
|
|
||||||
extern HANDLE CMD_ModuleHandle;
|
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