VirtualBox

Changeset 41244 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
May 10, 2012 4:40:28 PM (13 years ago)
Author:
vboxsync
Message:

Storage/VD: tweak error handling a bit so that file access errors are not seen as success (which confuses callers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r41035 r41244  
    52615261                }
    52625262                *ppszFormat = pszFormat;
    5263                 rc = VINF_SUCCESS;
     5263                /* Do not consider the typical file access errors as success,
     5264                 * which allows the caller to deal with such issues. */
     5265                if (   rc != VERR_ACCESS_DENIED
     5266                    && rc != VERR_PATH_NOT_FOUND
     5267                    && rc != VERR_FILE_NOT_FOUND)
     5268                    rc = VINF_SUCCESS;
    52645269                break;
    52655270            }
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