Changeset 95850 in vbox
- Timestamp:
- Jul 26, 2022 11:37:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r93115 r95850 61 61 typedef struct VBOXSERVICEVMINFOUSER 62 62 { 63 WCHAR wszUser[ _MAX_PATH];64 WCHAR wszAuthenticationPackage[ _MAX_PATH];65 WCHAR wszLogonDomain[ _MAX_PATH];63 WCHAR wszUser[MAX_PATH]; 64 WCHAR wszAuthenticationPackage[MAX_PATH]; 65 WCHAR wszLogonDomain[MAX_PATH]; 66 66 /** Number of assigned user processes. */ 67 67 ULONG ulNumProcs; … … 826 826 &pSessionData->LogonDomain, "Logon domain name"); 827 827 828 TCHAR szOwnerName[ _MAX_PATH]= { 0 };828 TCHAR szOwnerName[MAX_PATH] = { 0 }; 829 829 DWORD dwOwnerNameSize = sizeof(szOwnerName); 830 TCHAR szDomainName[ _MAX_PATH]= { 0 };830 TCHAR szDomainName[MAX_PATH] = { 0 }; 831 831 DWORD dwDomainNameSize = sizeof(szDomainName); 832 832 SID_NAME_USE enmOwnerType = SidTypeInvalid; … … 1188 1188 AssertPtr(pCurUser); 1189 1189 1190 if ( ! wcscmp(userSession.wszUser, pCurUser->wszUser)1191 && ! wcscmp(userSession.wszLogonDomain, pCurUser->wszLogonDomain)1192 && ! wcscmp(userSession.wszAuthenticationPackage, pCurUser->wszAuthenticationPackage))1190 if ( !RTUtf16Cmp(userSession.wszUser, pCurUser->wszUser) 1191 && !RTUtf16Cmp(userSession.wszLogonDomain, pCurUser->wszLogonDomain) 1192 && !RTUtf16Cmp(userSession.wszAuthenticationPackage, pCurUser->wszAuthenticationPackage)) 1193 1193 { 1194 1194 /* … … 1319 1319 { 1320 1320 int rc; 1321 char szSysDir[ _MAX_PATH] = {0};1322 char szWinDir[ _MAX_PATH] = {0};1323 char szDriversDir[ _MAX_PATH + 32] = {0};1321 char szSysDir[MAX_PATH] = {0}; 1322 char szWinDir[MAX_PATH] = {0}; 1323 char szDriversDir[MAX_PATH + 32] = {0}; 1324 1324 1325 1325 /* ASSUME: szSysDir and szWinDir and derivatives are always ASCII compatible. */ 1326 GetSystemDirectory(szSysDir, _MAX_PATH);1327 GetWindowsDirectory(szWinDir, _MAX_PATH);1326 GetSystemDirectory(szSysDir, MAX_PATH); 1327 GetWindowsDirectory(szWinDir, MAX_PATH); 1328 1328 RTStrPrintf(szDriversDir, sizeof(szDriversDir), "%s\\drivers", szSysDir); 1329 1329 #ifdef RT_ARCH_AMD64 1330 char szSysWowDir[ _MAX_PATH + 32] = {0};1330 char szSysWowDir[MAX_PATH + 32] = {0}; 1331 1331 RTStrPrintf(szSysWowDir, sizeof(szSysWowDir), "%s\\SysWow64", szWinDir); 1332 1332 #endif
Note:
See TracChangeset
for help on using the changeset viewer.