[ros-diffs] [turner] 18548: 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.

turner at svn.reactos.com turner at svn.reactos.com
Tue Oct 18 05:13:00 CEST 2005


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.
Modified: trunk/reactos/subsys/system/cmd/cmd.h
Modified: trunk/reactos/subsys/system/cmd/misc.c
  _____  

Modified: trunk/reactos/subsys/system/cmd/cmd.h
--- trunk/reactos/subsys/system/cmd/cmd.h	2005-10-18 01:55:20 UTC
(rev 18547)
+++ trunk/reactos/subsys/system/cmd/cmd.h	2005-10-18 03:12:49 UTC
(rev 18548)
@@ -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   IsExistingFile (LPCTSTR);
 BOOL   IsExistingDirectory (LPCTSTR);
 BOOL   FileGetString (HANDLE, LPTSTR, INT);
-#ifndef __REACTOS__
-HWND   GetConsoleWindow(VOID);
-#endif
 
 #define PROMPT_NO    0
 #define PROMPT_YES   1
  _____  

Modified: trunk/reactos/subsys/system/cmd/misc.c
--- trunk/reactos/subsys/system/cmd/misc.c	2005-10-18 01:55:20 UTC
(rev 18547)
+++ trunk/reactos/subsys/system/cmd/misc.c	2005-10-18 03:12:49 UTC
(rev 18548)
@@ -400,40 +400,6 @@

 	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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051018/035203e6/attachment.html


More information about the Ros-diffs mailing list