Changeset 19093 in vbox
- Timestamp:
- Apr 21, 2009 9:24:10 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46242
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r19091 r19093 36 36 int rc = VINF_SUCCESS; 37 37 38 /* Ugly edge case - zero size buffers shouldn't be locked. */38 /* Zero size buffers shouldn't be locked. */ 39 39 if (u32Size == 0) 40 40 { 41 Assert(pv == NULL); 42 #ifdef RT_OS_WINDOWS 43 *ppvCtx = NULL; 44 #else 41 45 *ppvCtx = NIL_RTR0MEMOBJ; 42 return VINF_SUCCESS; 43 } 46 #endif 47 return VINF_SUCCESS; 48 } 49 44 50 #ifdef RT_OS_WINDOWS 45 51 PMDL pMdl = IoAllocateMdl (pv, u32Size, FALSE, FALSE, NULL); … … 77 83 * r=michael: on Linux, we sometimes have R3 addresses (e.g. shared 78 84 * clipboard) and sometimes R0 (e.g. shared folders). We really ought 79 * to have two separate paths here - at any rate, Linux R0 shouldn't 85 * to have two separate paths here - at any rate, Linux R0 shouldn't 80 86 * end up calling this API. In practice, Linux R3 does it's own thing 81 87 * before winding up in the R0 path - which calls this stub API. … … 104 110 NOREF(u32Size); 105 111 106 /* Ugly edge case - zero size buffers aren't be locked. */107 if (pvCtx == NIL_RTR0MEMOBJ)108 return;109 112 #ifdef RT_OS_WINDOWS 110 113 PMDL pMdl = (PMDL)pvCtx;
Note:
See TracChangeset
for help on using the changeset viewer.