fixed a stupid bug in history

minor chage to GetConsoleHandle

svn path=/trunk/; revision=839
This commit is contained in:
Paolo Pantaleo 1999-12-08 18:18:23 +00:00
parent 9d84d82bd7
commit 258912bf48
2 changed files with 5 additions and 2 deletions

View file

@ -159,8 +159,8 @@ VOID add_at_bottom(LPTSTR string)
/*fill bottom with string*/
Bottom->string=malloc(_tclen(string));
/*fill bottom with string*/
Bottom->string=malloc(_tcslen(string)+1);
_tcscpy(Bottom->string,string);
/*save Bottom value*/

View file

@ -306,6 +306,9 @@ HWND GetConsoleWindow (VOID)
TCHAR temp[256];
HWND h=0;
if(h)
return h;
GetConsoleTitle (original, sizeof(original));
_tcscpy (temp, original);