VirtualBox

Changeset 10736 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 18, 2008 8:17:25 AM (17 years ago)
Author:
vboxsync
Message:

Fixed two bugs introduced in r33448. Test changes like this before committing, please!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp

    r10720 r10736  
    644644     * Issue device I/O control.
    645645     */
    646     int rc = VERR_INTERNAL_ERROR;
    647     if (DeviceIoControl(g_hDevice, uFunction, NULL, 0, NULL, 0, NULL, NULL))
    648         return rc;
     646    DWORD cbReturned = 0;
     647    if (DeviceIoControl(g_hDevice, uFunction, NULL, 0, NULL, 0, &cbReturned, NULL))
     648        return VINF_SUCCESS;
    649649    return suplibConvertWin32Err(GetLastError());
    650650}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette