VirtualBox

Changeset 25969 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Jan 22, 2010 12:22:38 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56822
Message:

pdmifs.h: Converted the mouse interface ids. Committing early to see how MSC likes PDMIBASE_QUERY_INTERFACE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.cpp

    r25966 r25969  
    5353} DRVMAINMOUSE, *PDRVMAINMOUSE;
    5454
    55 /** Converts PDMIMOUSECONNECTOR pointer to a DRVMAINMOUSE pointer. */
    56 #define PDMIMOUSECONNECTOR_2_MAINMOUSE(pInterface) ( (PDRVMAINMOUSE) ((uintptr_t)pInterface - RT_OFFSETOF(DRVMAINMOUSE, Connector)) )
    5755
    5856// IMouse methods
     
    186184    if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0)
    187185        return &pDrvIns->IBase;
    188     if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_MOUSE_CONNECTOR) == 0)
     186    if (RTUuidCompare2Strs(pszIID, PDMIMOUSECONNECTOR_IID) == 0)
    189187        return &pDrv->Connector;
    190188    return NULL;
     
    232230     * Get the IMousePort interface of the above driver/device.
    233231     */
    234     pData->pUpPort = (PPDMIMOUSEPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, PDMINTERFACE_MOUSE_PORT);
     232        pData->pUpPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIMOUSEPORT);
    235233    if (!pData->pUpPort)
    236234    {
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