VirtualBox

Ignore:
Timestamp:
Jul 22, 2013 12:14:26 PM (11 years ago)
Author:
vboxsync
Message:

VBoxTray/IPC: Only process commands w/ header version 0 for now.

File:
1 edited

Legend:

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

    r47234 r47296  
    295295            rc = RTLocalIpcSessionRead(hSession, &ipcHdr, sizeof(ipcHdr),
    296296                                       NULL /* Exact read, blocking */);
    297             bool fRejected = false;
     297            bool fRejected = false; /* Reject current command? */
    298298            if (RT_SUCCESS(rc))
    299                 fRejected = ipcHdr.uMagic != VBOXTRAY_IPC_HDR_MAGIC;
    300 
    301             if (RT_SUCCESS(rc))
     299                fRejected =    ipcHdr.uMagic != VBOXTRAY_IPC_HDR_MAGIC
     300                            || ipcHdr.uHdrVersion != 0; /* We only know version 0 commands for now. */
     301
     302            if (   !fRejected
     303                && RT_SUCCESS(rc))
    302304            {
    303305                switch (ipcHdr.uMsgType)
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