Changeset 3804 for trunk/src/kernel32/console.cpp
- Timestamp:
- Jul 6, 2000, 11:18:45 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/console.cpp
r2802 r3804 1 /* $Id: console.cpp,v 1.1 8 2000-02-16 14:25:34sandervl Exp $ */1 /* $Id: console.cpp,v 1.19 2000-07-06 21:18:39 sandervl Exp $ */ 2 2 3 3 /* … … 83 83 #include "conprop.h" 84 84 #include "unicode.h" 85 #include "heapstring.h" 85 86 86 87 #define DBG_LOCALLOG DBG_console … … 2707 2708 2708 2709 DWORD WIN32API GetConsoleTitleA(LPTSTR lpConsoleTitle, 2709 2710 DWORD nSize) 2710 2711 { 2711 2712 ULONG ulLength; /* length of text */ … … 2725 2726 ConsoleGlobals.pszWindowTitle, 2726 2727 nSize); 2728 lpConsoleTitle[nSize-1] = 0; 2727 2729 2728 2730 return (nSize < ulLength) ? nSize : ulLength; … … 2743 2745 *****************************************************************************/ 2744 2746 2745 DWORD WIN32API GetConsoleTitleW(LP TSTR lpConsoleTitle,2746 2747 DWORD WIN32API GetConsoleTitleW(LPWSTR lpConsoleTitle, 2748 DWORD nSize) 2747 2749 { 2748 2750 ULONG ulLength; /* length of text */ 2749 2751 2750 2752 #ifdef DEBUG_LOCAL2 2751 WriteLog("KERNEL32/CONSOLE: OS2GetConsoleTitleW(%08x,%08x).\n",2753 WriteLog("KERNEL32/CONSOLE: GetConsoleTitleW(%08x,%08x)", 2752 2754 lpConsoleTitle, 2753 2755 nSize); … … 2759 2761 ulLength = strlen(ConsoleGlobals.pszWindowTitle); /* length of text */ 2760 2762 2761 strncpy(lpConsoleTitle,2762 ConsoleGlobals.pszWindowTitle,2763 nSize);2763 lstrcpynAtoW(lpConsoleTitle, 2764 ConsoleGlobals.pszWindowTitle, 2765 nSize); 2764 2766 2765 2767 /* @@@PH Ascii2Unicode */
Note:
See TracChangeset
for help on using the changeset viewer.