VirtualBox

Changeset 55596 in vbox for trunk/src


Ignore:
Timestamp:
May 2, 2015 4:12:22 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99969
Message:

RTFileQueryInfo/win: Inverted check in error case, causing failure on non-file handlers like win 8.1 consoles. A little bit risky change.

File:
1 edited

Legend:

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

    r55348 r55596  
    830830        /* Only return if we *really* don't have a valid handle value,
    831831         * everything else is fine here ... */
    832         if (dwErr != ERROR_INVALID_HANDLE)
     832        if (dwErr == ERROR_INVALID_HANDLE)
    833833            return RTErrConvertFromWin32(dwErr);
     834        RT_ZERO(Data);
     835        Data.dwFileAttributes = RTFS_DOS_NT_DEVICE;
    834836    }
    835837
Note: See TracChangeset for help on using the changeset viewer.

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