remove some more __REACTOS__ checks. We dont need our GetConsoleWindow and it was never used. The size of CMD_LENGTH is the same for both and at some point will not longer be used once we have all dynamic allocations.

svn path=/trunk/; revision=18548
This commit is contained in:
Brandon Turner 2005-10-18 03:12:49 +00:00
parent 287174554b
commit a658088fed
2 changed files with 0 additions and 42 deletions

View file

@ -43,12 +43,7 @@
/* command line buffer length */
#ifdef __REACTOS__
#define CMDLINE_LENGTH 8192
#else
#define CMDLINE_LENGTH 8192
//#define CMDLINE_LENGTH 1024
#endif
/* global variables */
extern HANDLE hOut;
@ -305,9 +300,6 @@ BOOL IsValidPathName (LPCTSTR);
BOOL IsExistingFile (LPCTSTR);
BOOL IsExistingDirectory (LPCTSTR);
BOOL FileGetString (HANDLE, LPTSTR, INT);
#ifndef __REACTOS__
HWND GetConsoleWindow(VOID);
#endif
#define PROMPT_NO 0
#define PROMPT_YES 1

View file

@ -400,40 +400,6 @@ BOOL FileGetString (HANDLE hFile, LPTSTR lpBuffer, INT nBufferLength)
return TRUE;
}
#ifndef __REACTOS__
/*
* GetConsoleWindow - returns the handle to the current console window
*/
HWND GetConsoleWindow (VOID)
{
TCHAR original[256];
TCHAR temp[256];
HWND h=0;
if(h)
return h;
GetConsoleTitle (original, sizeof(original) / sizeof(TCHAR));
_tcscpy (temp, original);
_tcscat (temp, _T("-xxx "));
if (FindWindow (0, temp) == NULL )
{
SetConsoleTitle (temp);
Sleep (0);
while(!(h = FindWindow (0, temp)))
;
SetConsoleTitle (original);
}
return h;
}
#endif
INT PagePrompt (VOID)
{
INPUT_RECORD ir;