Diff
Not logged in

Differences From Artifact [9e6ee368d6]:

To Artifact [d6a48c6f76]:


339
340
341
342
343
344
345
346
347


348
349
350

351
352
353
354
355
356
357
339
340
341
342
343
344
345


346
347
348
349

350
351
352
353
354
355
356
357







-
-
+
+


-
+








void
InitializeHostName(
    char **valuePtr,
    int *lengthPtr,
    Tcl_Encoding *encodingPtr)
{
    WCHAR wbuf[MAX_COMPUTERNAME_LENGTH + 1];
    DWORD length = MAX_COMPUTERNAME_LENGTH + 1;
    WCHAR wbuf[256];
    DWORD length = sizeof(wbuf)/sizeof(WCHAR);
    Tcl_DString ds;

    if (GetComputerNameW(wbuf, &length) != 0) {
    if (GetComputerNameExW(ComputerNameDnsFullyQualified, wbuf, &length) != 0) {
	/*
	 * Convert string from native to UTF then change to lowercase.
	 */

	Tcl_UtfToLower(Tcl_WinTCharToUtf((TCHAR *)wbuf, -1, &ds));

    } else {