Check to make sure GetComputerName failed, caught by Thomas.
Modified: trunk/reactos/lib/cpl/sysdm/computer.c

Modified: trunk/reactos/lib/cpl/sysdm/computer.c
--- trunk/reactos/lib/cpl/sysdm/computer.c	2006-01-23 00:24:59 UTC (rev 20998)
+++ trunk/reactos/lib/cpl/sysdm/computer.c	2006-01-23 00:35:52 UTC (rev 20999)
@@ -46,8 +46,10 @@
       /* Display computer name */
       DWORD Size = MAX_COMPUTERNAME_LENGTH + 1;
       TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1];
-      GetComputerName(ComputerName,&Size);
-      SendDlgItemMessage(hwndDlg,IDC_COMPUTERNAME,WM_SETTEXT,0,(LPARAM)ComputerName);
+      if (GetComputerName(ComputerName,&Size))
+      {
+          SendDlgItemMessage(hwndDlg,IDC_COMPUTERNAME,WM_SETTEXT,0,(LPARAM)ComputerName);
+      }
       /* FIXME: get the workgroup */
       break;
     }