VirtualBox

Changeset 75651 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Nov 21, 2018 7:28:03 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/fileio-win.cpp: Fixed console handle regression from previous change (tstRTVfs failed). Also fixed nul device (invalid info level status).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r75544 r75651  
    852852     * GetFileType should it not be there.
    853853     */
    854     if (rc == VERR_INVALID_HANDLE)
     854    if (   rc == VERR_INVALID_HANDLE
     855        || rc == VERR_ACCESS_DENIED
     856        || rc == VERR_UNEXPECTED_FS_OBJ_TYPE)
    855857    {
    856858        static PFNVERIFYCONSOLEIOHANDLE s_pfnVerifyConsoleIoHandle = NULL;
     
    870872    }
    871873    /*
    872      * On Windows 10 and (hopefully) 8.1 we get ERROR_INVALID_FUNCTION with console I/O
    873      * handles.  We must ignore these just like the above invalid handle error.
     874     * On Windows 10 and (hopefully) 8.1 we get ERROR_INVALID_FUNCTION with console
     875     * I/O handles and null device handles.  We must ignore these just like the
     876     * above invalid handle error.
    874877     */
    875878    else if (rc != VERR_INVALID_FUNCTION && rc != VERR_IO_BAD_COMMAND)
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