Changeset 81620 in vbox for trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
- Timestamp:
- Nov 1, 2019 2:37:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
r78120 r81620 349 349 unsigned fProt, size_t offSub, size_t cbSub) 350 350 { 351 AssertMsgReturn(!offSub && !cbSub, ("%#x %#x\n", offSub, cbSub), VERR_NOT_SUPPORTED);352 351 AssertMsgReturn(pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED); 353 352 … … 357 356 if (uAlignment > PAGE_SIZE) 358 357 return VERR_NOT_SUPPORTED; 359 360 358 361 359 /** @todo finish the implementation. */ … … 416 414 * (reference counting). 417 415 */ 416 if (!cbSub) 417 cbSub = pMemToMapOs2->Core.cb - offSub; 418 418 PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_MAPPING, 419 pvR0, pMemToMapOs2->Core.cb);419 (uint8_t *)pvR0 + offSub, cbSub); 420 420 if (pMemOs2) 421 421 {
Note:
See TracChangeset
for help on using the changeset viewer.