Changeset 64292 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Oct 17, 2016 10:38:53 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111315
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r64291 r64292 34 34 #include <iprt/mem.h> 35 35 #include <iprt/once.h> 36 #include <iprt/process.h> 36 37 #include <iprt/string.h> 37 38 #include <iprt/semaphore.h> … … 954 955 /* pszDomain is optional. */ 955 956 956 int rc = VINF_SUCCESS; 957 958 char szPipeName[255]; 959 /** @todo r=bird: Pointless if. */ 960 if (RTStrPrintf(szPipeName, sizeof(szPipeName), "%s%s", VBOXTRAY_IPC_PIPE_PREFIX, pszUser)) 957 char szPipeName[512 + sizeof(VBOXTRAY_IPC_PIPE_PREFIX)]; 958 memcpy(szPipeName, VBOXTRAY_IPC_PIPE_PREFIX, sizeof(VBOXTRAY_IPC_PIPE_PREFIX)); 959 int rc = RTStrCat(szPipeName, sizeof(szPipeName), pszUser); 960 if (RT_SUCCESS(rc)) 961 961 { 962 962 bool fReportToHost = false; … … 964 964 965 965 RTLOCALIPCSESSION hSession; 966 rc = RTLocalIpcSessionConnect(&hSession, szPipeName, 0 /* Flags */);966 rc = RTLocalIpcSessionConnect(&hSession, szPipeName, RTLOCALIPC_FLAGS_NATIVE_NAME); 967 967 if (RT_SUCCESS(rc)) 968 968 {
Note:
See TracChangeset
for help on using the changeset viewer.