Changeset 30470 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 28, 2010 2:03:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/sg.cpp
r30468 r30470 66 66 67 67 68 RTDECL(void) RTSgBufInit(PRTSGBUF pSgBuf, PCRTSGSEG paSegs, unsignedcSegs)68 RTDECL(void) RTSgBufInit(PRTSGBUF pSgBuf, PCRTSGSEG paSegs, size_t cSegs) 69 69 { 70 70 AssertPtr(pSgBuf); 71 71 AssertPtr(paSegs); 72 72 Assert(cSegs > 0); 73 Assert(cSegs < (~(unsigned)0 >> 1)); 73 74 74 75 pSgBuf->paSegs = paSegs; 75 pSgBuf->cSegs = cSegs;76 pSgBuf->cSegs = (unsigned)cSegs; 76 77 pSgBuf->idxSeg = 0; 77 78 pSgBuf->pvSegCur = paSegs[0].pvSeg;
Note:
See TracChangeset
for help on using the changeset viewer.