Changeset 16541 in vbox
- Timestamp:
- Feb 6, 2009 7:24:26 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r16540 r16541 152 152 PRTREQ pReq = NULL; 153 153 int rc; 154 constvoid *buf;154 void *buf; 155 155 /* don't queue new requests when the NAT thread is about to stop */ 156 156 if (pThis->pThread->enmState != PDMTHREADSTATE_RUNNING) … … 164 164 165 165 /* @todo: Here we should get mbuf instead temporal buffer */ 166 buf = (const void *)RTMemAlloc(cb);166 buf = RTMemAlloc(cb); 167 167 if (buf == NULL) 168 168 { … … 170 170 return VERR_NO_MEMORY; 171 171 } 172 memcpy( (void *)buf, pvBuf, cb);172 memcpy(buf, pvBuf, cb); 173 173 174 174 pReq->u.Internal.pfn = (PFNRT)drvNATSendWorker;
Note:
See TracChangeset
for help on using the changeset viewer.