Changeset 73097 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123672
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp
r69500 r73097 183 183 184 184 #define IFPORT_2_VBOXNETADP_ADAPTER(pIfPort) \ 185 ( (PVBOXNETADP_ADAPTER)((uint8_t *) pIfPort - RT_OFFSETOF(VBOXNETADP_ADAPTER, MyPort)) )185 ( (PVBOXNETADP_ADAPTER)((uint8_t *)(pIfPort) - RT_UOFFSETOF(VBOXNETADP_ADAPTER, MyPort)) ) 186 186 187 187 DECLINLINE(VBOXNETADPWIN_ADAPTER_STATE) vboxNetAdpWinGetState(PVBOXNETADP_ADAPTER pThis) … … 490 490 /* Allocate and initialize SG */ 491 491 PINTNETSG pSG = (PINTNETSG)NdisAllocateMemoryWithTagPriority(pThis->hAdapter, 492 RT_ OFFSETOF(INTNETSG, aSegs[cSegs]),492 RT_UOFFSETOF_DYN(INTNETSG, aSegs[cSegs]), 493 493 VBOXNETADP_MEM_TAG, 494 494 NormalPoolPriority); … … 792 792 */ 793 793 static DECLCALLBACK(void *) vboxNetAdpWinQueryFactoryInterface(PCSUPDRVFACTORY pSupDrvFactory, PSUPDRVSESSION pSession, 794 const char *pszInterfaceUuid)795 { 796 PVBOXNETADPGLOBALS pGlobals = (PVBOXNETADPGLOBALS)((uint8_t *)pSupDrvFactory - RT_ OFFSETOF(VBOXNETADPGLOBALS, SupDrvFactory));794 const char *pszInterfaceUuid) 795 { 796 PVBOXNETADPGLOBALS pGlobals = (PVBOXNETADPGLOBALS)((uint8_t *)pSupDrvFactory - RT_UOFFSETOF(VBOXNETADPGLOBALS, SupDrvFactory)); 797 797 798 798 /* … … 846 846 PINTNETTRUNKIFPORT *ppIfPort) 847 847 { 848 PVBOXNETADPGLOBALS pGlobals = (PVBOXNETADPGLOBALS)((uint8_t *)pIfFactory - RT_ OFFSETOF(VBOXNETADPGLOBALS, TrunkFactory));848 PVBOXNETADPGLOBALS pGlobals = (PVBOXNETADPGLOBALS)((uint8_t *)pIfFactory - RT_UOFFSETOF(VBOXNETADPGLOBALS, TrunkFactory)); 849 849 850 850 LogFlow(("==>vboxNetAdpWinFactoryCreateAndConnect: pszName=%p:{%s} fFlags=%#x\n", pszName, pszName, fFlags));
Note:
See TracChangeset
for help on using the changeset viewer.