diff options
author | nijtmans <nijtmans> | 2010-03-07 14:39:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-03-07 14:39:25 (GMT) |
commit | 646fc65d90e21ea34b47fee9ef22f8fbaf4e40ca (patch) | |
tree | 613fc83e151efdbb14c37fbfb42d5f8aa355642d /win/tclWinSock.c | |
parent | e0f4b9aef0aed9b336779d768d41cf8fba52f137 (diff) | |
download | tcl-646fc65d90e21ea34b47fee9ef22f8fbaf4e40ca.zip tcl-646fc65d90e21ea34b47fee9ef22f8fbaf4e40ca.tar.gz tcl-646fc65d90e21ea34b47fee9ef22f8fbaf4e40ca.tar.bz2 |
test that tclOO stubs are present in stub library
Applied missing part of [Patch 2961556]
Change all tclWinProcs signatures to use
TCHAR* in stead of WCHAR*. This is meant
as preparation to make [Enh 2965056]
possible at all.
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 933523a..27f7245 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinSock.c,v 1.69 2010/02/15 23:10:47 nijtmans Exp $ + * RCS: @(#) $Id: tclWinSock.c,v 1.70 2010/03/07 14:39:25 nijtmans Exp $ */ #include "tclWinInt.h" @@ -2423,16 +2423,16 @@ InitializeHostName( int *lengthPtr, Tcl_Encoding *encodingPtr) { - WCHAR wbuf[MAX_COMPUTERNAME_LENGTH + 1]; - DWORD length = sizeof(wbuf) / sizeof(WCHAR); + TCHAR tbuf[(MAX_COMPUTERNAME_LENGTH + 1)*2]; + DWORD length = MAX_COMPUTERNAME_LENGTH + 1; Tcl_DString ds; - if (tclWinProcs->getComputerNameProc(wbuf, &length) != 0) { + if (tclWinProcs->getComputerNameProc(tbuf, &length) != 0) { /* * Convert string from native to UTF then change to lowercase. */ - Tcl_UtfToLower((char *) tclWinProcs->tchar2utf((TCHAR *) wbuf, -1, &ds)); + Tcl_UtfToLower((char *) tclWinProcs->tchar2utf(tbuf, -1, &ds)); } else { Tcl_DStringInit(&ds); |