Changeset 3976 for trunk/src/kernel32/console.cpp
- Timestamp:
- Aug 10, 2000, 4:19:58 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/console.cpp
r3894 r3976 1 /* $Id: console.cpp,v 1.2 0 2000-07-25 18:22:47 sandervlExp $ */1 /* $Id: console.cpp,v 1.21 2000-08-10 02:19:54 phaller Exp $ */ 2 2 3 3 /* … … 2768 2768 nSize); 2769 2769 2770 /* @@@PH Ascii2Unicode */2771 2772 2770 return (nSize < ulLength) ? nSize : ulLength; 2773 2771 } … … 3700 3698 *****************************************************************************/ 3701 3699 3702 BOOL WIN32API SetConsoleTitleW(LP TSTR lpszTitle)3700 BOOL WIN32API SetConsoleTitleW(LPWSTR lpszTitle) 3703 3701 { 3704 3702 #ifdef DEBUG_LOCAL2 … … 3707 3705 #endif 3708 3706 3709 /* @@@PH Unicode2Ascii */ 3710 3707 if (lpszTitle == NULL) /* check parameters */ 3708 return FALSE; 3709 3711 3710 if (ConsoleGlobals.pszWindowTitle != NULL) /* previously set name */ 3712 3711 free (ConsoleGlobals.pszWindowTitle); /* then free it */ 3713 3714 ConsoleGlobals.pszWindowTitle = strdup(lpszTitle); /* copy the new name */ 3712 3713 /* create an ascii copy of the lpszTitle */ 3714 int iLength = UniStrlen(lpszTitle); 3715 3716 ConsoleGlobals.pszWindowTitle = (PSZ)malloc(iLength+1); 3717 ConsoleGlobals.pszWindowTitle[iLength] = 0; 3718 lstrcpynWtoA(ConsoleGlobals.pszWindowTitle, 3719 lpszTitle, 3720 iLength); 3715 3721 3716 3722 WinSetWindowText(ConsoleGlobals.hwndFrame, /* set new title text */
Note:
See TracChangeset
for help on using the changeset viewer.