Changeset 64285 in vbox for trunk/src/VBox/Additions/WINNT/Installer
- Timestamp:
- Oct 16, 2016 8:08:03 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111300
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
r63089 r64285 34 34 #include <iprt/mem.h> 35 35 #include <iprt/string.h> 36 #include <iprt/localipc.h> 36 37 37 38 /* Required structures/defines of VBoxTray. */ … … 152 153 if (RT_SUCCESS(rc)) 153 154 { 154 char szPipeName[255]; 155 if (RTStrPrintf(szPipeName, sizeof(szPipeName), "%s%s", 156 VBOXTRAY_IPC_PIPE_PREFIX, pszUserName)) 155 char szPipeName[80]; 156 size_t cbPipeName = sizeof(szPipeName); 157 rc = RTLocalIpcMakeNameUniqueUser(VBOXTRAY_IPC_PIPE_PREFIX, pszUserName, szPipeName, &cbPipeName); 158 if (RT_SUCCESS(rc)) 157 159 { 158 160 rc = RTLocalIpcSessionConnect(phSession, szPipeName, 0 /* Flags */); 159 161 } 160 else161 rc = VERR_NO_MEMORY;162 162 163 163 RTStrFree(pszUserName);
Note:
See TracChangeset
for help on using the changeset viewer.