Changeset 4800 in vbox for trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp
- Timestamp:
- Sep 14, 2007 2:59:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp
r4071 r4800 131 131 132 132 133 int suplibOsIOCtl(u nsigned uFunction, void *pvIn, size_t cbIn, void *pvOut, size_t cbOut)133 int suplibOsIOCtl(uintptr_t uFunction, void *pvReq, size_t cbReq) 134 134 { 135 135 AssertMsg(g_hDevice != (HFILE)-1, ("SUPLIB not initiated successfully!\n")); 136 136 137 SUPDRVIOCTLDATA Args; 138 Args.pvIn = pvIn; 139 Args.cbIn = cbIn; 140 Args.pvOut = pvOut; 141 Args.cbOut = cbOut; 142 Args.rc = VERR_INTERNAL_ERROR; 143 144 ULONG cbReturned = sizeof(Args); 137 ULONG cbReturned = sizeof(SUPREQHDR); 145 138 int rc = DosDevIOCtl(g_hDevice, SUP_CTL_CATEGORY, uFunction, 146 & Args, sizeof(Args), &cbReturned,139 &cbIn, cbReturned, &cbReturned, 147 140 NULL, 0, NULL); 148 141 if (RT_LIKELY(rc == NO_ERROR)) 149 rc = Args.rc; 150 else 151 rc = RTErrConvertFromOS2(rc); 152 return rc; 142 return VINF_SUCCESS; 143 return RTErrConvertFromOS2(rc); 153 144 } 154 145 155 146 156 147 #ifdef VBOX_WITHOUT_IDT_PATCHING 157 int suplibOSIOCtlFast(u nsigneduFunction)148 int suplibOSIOCtlFast(uintptr_t uFunction) 158 149 { 159 150 int32_t rcRet = VERR_INTERNAL_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.