VirtualBox

Changeset 51770 in vbox for trunk/src/VBox/Runtime/win


Ignore:
Timestamp:
Jul 1, 2014 6:14:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94611
Message:

Merged in iprt++ dev branch.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Runtime/win/RTErrConvertFromWin32.cpp

    r51427 r51770  
    413413        case ERROR_NOT_A_REPARSE_POINT: return VERR_NOT_SYMLINK;
    414414
     415        case NTE_BAD_ALGID:         return VERR_CR_PKIX_UNKNOWN_DIGEST_TYPE;
    415416    }
    416417
  • trunk/src/VBox/Runtime/win/errmsgwin.cpp

    r48935 r51770  
    4444static const RTWINERRMSG  g_aStatusMsgs[] =
    4545{
    46 #include "errmsgcomdata.h"
    47 #if defined(VBOX) && !defined(IN_GUEST)
    48 # include "errmsgvboxcomdata.h"
     46#ifndef IPRT_NO_ERROR_DATA
     47# include "errmsgcomdata.h"
     48# if defined(VBOX) && !defined(IN_GUEST)
     49#  include "errmsgvboxcomdata.h"
     50# endif
     51#else
     52    { "Success.", "ERROR_SUCCESS", 0 },
    4953#endif
    5054    { NULL, NULL, 0 }
     
    7781{
    7882    unsigned i;
    79     for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs); i++)
     83    for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) - 1U; i++)
    8084        if (g_aStatusMsgs[i].iCode == rc)
    8185            return &g_aStatusMsgs[i];
     
    8690     * actual value in case we pick the wrong entry. Better than always using
    8791     * the "Unknown Status" case. */
    88     for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs); i++)
     92    for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) - 1U; i++)
    8993        if (g_aStatusMsgs[i].iCode == HRESULT_CODE(rc))
    9094        {
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