diff options
Diffstat (limited to 'cpp/src/IceGrid/PlatformInfo.cpp')
-rw-r--r-- | cpp/src/IceGrid/PlatformInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp index e2fc8bc28fb..488fda81102 100644 --- a/cpp/src/IceGrid/PlatformInfo.cpp +++ b/cpp/src/IceGrid/PlatformInfo.cpp @@ -240,8 +240,8 @@ PlatformInfo::PlatformInfo(const string& prefix, #ifdef _WIN32 _os = "Windows"; char hostname[MAX_COMPUTERNAME_LENGTH + 1]; - unsigned long size = sizeof(hostname); - if(GetComputerName(hostname, &size)) + unsigned long hsize = sizeof(hostname); + if(GetComputerName(hostname, &hsize)) { _hostname = hostname; } @@ -627,7 +627,7 @@ PlatformInfo::runUpdateLoadInfo() } int usage = 100; - PDH_STATUS err = PdhCollectQueryData(query); + err = PdhCollectQueryData(query); if(err == ERROR_SUCCESS) { DWORD type; |