VirtualBox

Ignore:
Timestamp:
Oct 17, 2016 10:17:49 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111313
Message:

Reverted r111300 and subsequent changes since the fix is to use RTLOCALIPC_FLAGS_NATIVE_NAME.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r64285 r64291  
    3939#include <iprt/time.h>
    4040#include <iprt/thread.h>
    41 
    4241
    4342#include <VBox/VBoxGuestLib.h>
     
    956955
    957956    int rc = VINF_SUCCESS;
    958     char szPipeName[80];
    959     size_t cbPipeName = sizeof(szPipeName);
    960     rc = RTLocalIpcMakeNameUniqueUser(VBOXTRAY_IPC_PIPE_PREFIX, pszUser, szPipeName, &cbPipeName);
     957
     958    char szPipeName[255];
    961959/** @todo r=bird:  Pointless if.  */
    962     if (RT_SUCCESS(rc))
     960    if (RTStrPrintf(szPipeName, sizeof(szPipeName), "%s%s", VBOXTRAY_IPC_PIPE_PREFIX, pszUser))
    963961    {
    964962        bool fReportToHost = false;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette