(file) Return to SystemWindows.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SystemWindows.cpp between version 1.58 and 1.59

version 1.58, 2005/11/01 23:24:49 version 1.59, 2005/11/02 20:16:41
Line 334 
Line 334 
  
         //Bug 3076 fix         //Bug 3076 fix
         wchar_t fullUserName[UNLEN+1];         wchar_t fullUserName[UNLEN+1];
         DWORD userNameSize = sizeof(fullUserName);          DWORD userNameSize = sizeof(fullUserName)/sizeof(fullUserName[0]);
         wchar_t computerName[MAX_COMPUTERNAME_LENGTH+1];         wchar_t computerName[MAX_COMPUTERNAME_LENGTH+1];
     DWORD computerNameSize = sizeof(computerName);      DWORD computerNameSize = sizeof(computerName)/sizeof(computerName[0]);
         wchar_t userName[UNLEN+1];         wchar_t userName[UNLEN+1];
     wchar_t userDomain[UNLEN+1];     wchar_t userDomain[UNLEN+1];
         String userId;         String userId;
Line 392 
Line 392 
  
     // UNLEN (256) is the limit, not including null     // UNLEN (256) is the limit, not including null
     wchar_t pUserName[256+1] = {0};     wchar_t pUserName[256+1] = {0};
     DWORD nSize = sizeof(pUserName);      DWORD nSize = sizeof(pUserName)/sizeof(pUserName[0]);
  
     retcode = GetUserNameW(pUserName, &nSize);     retcode = GetUserNameW(pUserName, &nSize);
     if (retcode == 0)     if (retcode == 0)


Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2