VirtualBox

Ignore:
Timestamp:
Oct 16, 2016 8:08:03 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111300
Message:

Additions: bugref:8622: Use crc of user name in name of ipc pipe

File:
1 edited

Legend:

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

    r62851 r64285  
    3939#include <iprt/time.h>
    4040#include <iprt/thread.h>
     41
    4142
    4243#include <VBox/VBoxGuestLib.h>
     
    955956
    956957    int rc = VINF_SUCCESS;
    957 
    958     char szPipeName[255];
     958    char szPipeName[80];
     959    size_t cbPipeName = sizeof(szPipeName);
     960    rc = RTLocalIpcMakeNameUniqueUser(VBOXTRAY_IPC_PIPE_PREFIX, pszUser, szPipeName, &cbPipeName);
    959961/** @todo r=bird:  Pointless if.  */
    960     if (RTStrPrintf(szPipeName, sizeof(szPipeName), "%s%s", VBOXTRAY_IPC_PIPE_PREFIX, pszUser))
     962    if (RT_SUCCESS(rc))
    961963    {
    962964        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