Changeset 51770 in vbox for trunk/src/VBox/Runtime/win
- Timestamp:
- Jul 1, 2014 6:14:02 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94611
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/bird/hardenedwindows (added) merged: 92692-94610
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/bird/hardenedwindows/src/VBox (added) merged: 92692-94610
- Property svn:mergeinfo changed
-
trunk/src/VBox/Runtime/win/RTErrConvertFromWin32.cpp
r51427 r51770 413 413 case ERROR_NOT_A_REPARSE_POINT: return VERR_NOT_SYMLINK; 414 414 415 case NTE_BAD_ALGID: return VERR_CR_PKIX_UNKNOWN_DIGEST_TYPE; 415 416 } 416 417 -
trunk/src/VBox/Runtime/win/errmsgwin.cpp
r48935 r51770 44 44 static const RTWINERRMSG g_aStatusMsgs[] = 45 45 { 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 }, 49 53 #endif 50 54 { NULL, NULL, 0 } … … 77 81 { 78 82 unsigned i; 79 for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) ; i++)83 for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) - 1U; i++) 80 84 if (g_aStatusMsgs[i].iCode == rc) 81 85 return &g_aStatusMsgs[i]; … … 86 90 * actual value in case we pick the wrong entry. Better than always using 87 91 * 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++) 89 93 if (g_aStatusMsgs[i].iCode == HRESULT_CODE(rc)) 90 94 {
Note:
See TracChangeset
for help on using the changeset viewer.