Changeset 1481 in vbox
- Timestamp:
- Mar 14, 2007 6:28:14 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r1 r1481 1040 1040 cbSend = RT_ALIGN(RT_MAX(cbSend, sizeof(INTNETHDR) * 4), sizeof(INTNETHDR)); 1041 1041 const unsigned cbBuf = RT_ALIGN(sizeof(*pIf->pIntBuf), sizeof(INTNETHDR)) + cbRecv + cbSend; 1042 rc = SUPR0MemAlloc(pIf->pSession, cbBuf, ( void **)&pIf->pIntBufDefault, (void **)&pIf->pIntBufDefaultR3);1042 rc = SUPR0MemAlloc(pIf->pSession, cbBuf, (PRTR0PTR)&pIf->pIntBufDefault, (PRTR3PTR)&pIf->pIntBufDefaultR3); 1043 1043 if (VBOX_SUCCESS(rc)) 1044 1044 { -
trunk/src/VBox/Devices/Network/testcase/tstIntNetR0.cpp
r1 r1481 160 160 } 161 161 162 INTNETR3DECL(int) SUPR0MemAlloc(PSUPDRVSESSION pSession, u nsigned cb, void **ppvR0, void **ppvR3)162 INTNETR3DECL(int) SUPR0MemAlloc(PSUPDRVSESSION pSession, uint32_t cb, PRTR0PTR ppvR0, PRTR3PTR ppvR3) 163 163 { 164 164 if (pSession != g_pSession) … … 171 171 if (!pv) 172 172 return VERR_NO_MEMORY; 173 *ppvR0 = pv;173 *ppvR0 = (RTR0PTR)pv; 174 174 if (ppvR3) 175 175 *ppvR3 = pv;
Note:
See TracChangeset
for help on using the changeset viewer.