Changeset 10720 in vbox for trunk/src/VBox/HostDrivers/Support/win
- Timestamp:
- Jul 17, 2008 12:06:56 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33448
- Location:
- trunk/src/VBox/HostDrivers/Support/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r10662 r10720 296 296 int rc; 297 297 298 /* We're here with METHOD_NEITHER, which means no parameter validation has been performed. Do not use input 299 * or write to output parameters! 300 */ 301 298 302 /* Raise the IRQL to DISPATCH_LEVEl to prevent Windows from rescheduling us to another CPU/core. */ 299 303 Assert(KeGetCurrentIrql() <= DISPATCH_LEVEL); … … 304 308 /* Complete the I/O request. */ 305 309 NTSTATUS rcNt = pIrp->IoStatus.Status = STATUS_SUCCESS; 306 pIrp->IoStatus.Information = sizeof(rc);307 __try308 {309 *(int *)pIrp->UserBuffer = rc;310 }311 __except(EXCEPTION_EXECUTE_HANDLER)312 {313 rcNt = pIrp->IoStatus.Status = GetExceptionCode();314 dprintf(("VBoxSupDrvDeviceContorl: Exception Code %#x\n", rcNt));315 }316 310 IoCompleteRequest(pIrp, IO_NO_INCREMENT); 317 311 return rcNt; -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r10256 r10720 645 645 */ 646 646 int rc = VERR_INTERNAL_ERROR; 647 DWORD cbReturned = (ULONG)sizeof(rc); 648 if (DeviceIoControl(g_hDevice, uFunction, NULL, 0, &rc, (DWORD)sizeof(rc), &cbReturned, NULL)) 647 if (DeviceIoControl(g_hDevice, uFunction, NULL, 0, NULL, 0, NULL, NULL)) 649 648 return rc; 650 649 return suplibConvertWin32Err(GetLastError());
Note:
See TracChangeset
for help on using the changeset viewer.