VirtualBox

Ignore:
Timestamp:
Apr 28, 2020 7:32:41 PM (5 years ago)
Author:
vboxsync
Message:

IPRT,++: New RTErrWin* API, data source unchanged. bugref:9726

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/tools/VBoxCertUtil.cpp

    r82968 r84063  
    102102        default:
    103103        {
    104             PCRTCOMERRMSG pWinComMsg = RTErrCOMGet(dwErr);
    105             if (pWinComMsg)
    106                 return pWinComMsg->pszDefine;
    107 
    108             static char s_szErr[32];
    109             RTStrPrintf(s_szErr, sizeof(s_szErr), "%#x (%d)", dwErr, dwErr);
     104            static char s_szErr[80];
     105            if (RTErrWinQueryDefine(dwErr, s_szErr, sizeof(s_szErr), true /*fFailIfUnknown*/) == VERR_NOT_FOUND)
     106                RTStrPrintf(s_szErr, sizeof(s_szErr), "%#x (%d)", dwErr, dwErr);
    110107            return s_szErr;
    111108        }
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