Changeset 39855 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Jan 24, 2012 4:40:14 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r35353 r39855 51 51 /** Converts a pointer to DRVNAMEDPIPE::IMedia to a PDRVNAMEDPIPE. */ 52 52 #define PDMISTREAM_2_DRVNAMEDPIPE(pInterface) ( (PDRVNAMEDPIPE)((uintptr_t)pInterface - RT_OFFSETOF(DRVNAMEDPIPE, IStream)) ) 53 54 /** Converts a pointer to PDMDRVINS::IBase to a PPDMDRVINS. */55 #define PDMIBASE_2_DRVINS(pInterface) ( (PPDMDRVINS)((uintptr_t)pInterface - RT_OFFSETOF(PDMDRVINS, IBase)) )56 53 57 54 … … 286 283 static DECLCALLBACK(void *) drvNamedPipeQueryInterface(PPDMIBASE pInterface, const char *pszIID) 287 284 { 288 PPDMDRVINS pDrvIns = PDMIBASE_2_ DRVINS(pInterface);285 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); 289 286 PDRVNAMEDPIPE pThis = PDMINS_2_DATA(pDrvIns, PDRVNAMEDPIPE); 290 287 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase); -
trunk/src/VBox/Devices/Serial/DrvRawFile.cpp
r37596 r39855 39 39 #define PDMISTREAM_2_DRVRAWFILE(pInterface) ( (PDRVRAWFILE)((uintptr_t)pInterface - RT_OFFSETOF(DRVRAWFILE, IStream)) ) 40 40 41 /** Converts a pointer to PDMDRVINS::IBase to a PPDMDRVINS. */42 #define PDMIBASE_2_DRVINS(pInterface) ( (PPDMDRVINS)((uintptr_t)pInterface - RT_OFFSETOF(PDMDRVINS, IBase)) )43 44 41 45 42 /******************************************************************************* … … 98 95 static DECLCALLBACK(void *) drvRawFileQueryInterface(PPDMIBASE pInterface, const char *pszIID) 99 96 { 100 PPDMDRVINS pDrvIns = PDMIBASE_2_ DRVINS(pInterface);97 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); 101 98 PDRVRAWFILE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWFILE); 102 99
Note:
See TracChangeset
for help on using the changeset viewer.