VirtualBox

Ignore:
Timestamp:
Dec 16, 2010 1:59:44 PM (14 years ago)
Author:
vboxsync
Message:

RTLdrLoadEx use RTERRINFO.

File:
1 edited

Legend:

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

    r35152 r35183  
    21042104     * Try load it.
    21052105     */
    2106     return RTLdrLoadEx(pszFilename, phLdrMod, fFlags, pszError, cbError);
     2106    RTERRINFO  ErrInfo;
     2107    PRTERRINFO pErrInfo;
     2108    if (!pszError || !cbError)
     2109        pErrInfo = NULL;
     2110    else
     2111        pErrInfo = RTErrInfoInit(&ErrInfo, pszError, cbError);
     2112    return RTLdrLoadEx(pszFilename, phLdrMod, fFlags, pErrInfo);
    21072113}
    21082114
     
    22452251     * Try load it.
    22462252     */
    2247     return RTLdrLoadEx(pszFilename, phLdrMod, 0 /*=fFlags*/, pszErr, cbErr);
     2253    RTERRINFO  ErrInfo;
     2254    PRTERRINFO pErrInfo;
     2255    if (!pszErr || !cbErr)
     2256        pErrInfo = NULL;
     2257    else
     2258        pErrInfo = RTErrInfoInit(&ErrInfo, pszErr, cbErr);
     2259    return RTLdrLoadEx(pszFilename, phLdrMod, 0 /*fFlags*/, pErrInfo);
    22482260}
    22492261
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