VirtualBox

Changeset 64326 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 19, 2016 5:37:25 PM (8 years ago)
Author:
vboxsync
Message:

VBoxTrayMsg.h: Duh. VBOXTRAY_IPC_PIPE_PREFIX need to have the full native path, not just the filename part, now that we use RTLOCALIPC_FLAGS_NATIVE_NAME. Assertions!

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp

    r64292 r64326  
    201201                                 sizeof(szPipeName) - sizeof(VBOXTRAY_IPC_PIPE_PREFIX) + 1,
    202202                                 NULL /*pcbUser*/);
     203        AssertRC(rc);
    203204        if (RT_SUCCESS(rc))
    204205        {
    205206            rc = RTLocalIpcServerCreate(&pCtx->hServer, szPipeName, RTLOCALIPC_FLAGS_NATIVE_NAME);
     207            AssertRC(rc);
    206208            if (RT_SUCCESS(rc))
    207209            {
     
    230232DECLCALLBACK(void) VBoxIPCStop(void *pInstance)
    231233{
     234    /* Can be NULL if VBoxIPCInit failed. */
     235    if (!pInstance)
     236        return;
    232237    AssertPtrReturnVoid(pInstance);
    233238
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTrayMsg.h

    r62522 r64326  
    1919#define ___VBOXTRAY_MSG_H
    2020
    21 /** The IPC pipe's prefix. Will be followed by the
    22  * username VBoxTray runs under. */
    23 #define VBOXTRAY_IPC_PIPE_PREFIX      "VBoxTrayIPC-"
     21/** The IPC pipe's prefix (native).
     22 * Will be followed by the username VBoxTray runs under. */
     23#define VBOXTRAY_IPC_PIPE_PREFIX      "\\\\.\\pipe\\VBoxTrayIPC-"
    2424/** The IPC header's magic. */
    2525#define VBOXTRAY_IPC_HDR_MAGIC        0x19840804
Note: See TracChangeset for help on using the changeset viewer.

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