mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
fixed a stupid bug in history
minor chage to GetConsoleHandle svn path=/trunk/; revision=839
This commit is contained in:
parent
9d84d82bd7
commit
258912bf48
2 changed files with 5 additions and 2 deletions
|
@ -160,7 +160,7 @@ VOID add_at_bottom(LPTSTR string)
|
|||
|
||||
|
||||
/*fill bottom with string*/
|
||||
Bottom->string=malloc(_tclen(string));
|
||||
Bottom->string=malloc(_tcslen(string)+1);
|
||||
_tcscpy(Bottom->string,string);
|
||||
|
||||
/*save Bottom value*/
|
||||
|
|
|
@ -306,6 +306,9 @@ HWND GetConsoleWindow (VOID)
|
|||
TCHAR temp[256];
|
||||
HWND h=0;
|
||||
|
||||
if(h)
|
||||
return h;
|
||||
|
||||
GetConsoleTitle (original, sizeof(original));
|
||||
|
||||
_tcscpy (temp, original);
|
||||
|
|
Loading…
Reference in a new issue