Changeset 8402 in vbox for trunk/src/VBox/Runtime/win
- Timestamp:
- Apr 26, 2008 5:13:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/win/errmsgwin.cpp
r8245 r8402 38 38 #include <iprt/string.h> 39 39 #include <iprt/err.h> 40 #include <VBox/err.h>41 40 42 41 … … 79 78 { 80 79 unsigned i; 81 for (i = 0; i < ELEMENTS(g_aStatusMsgs); i++) 82 { 80 for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs); i++) 83 81 if (g_aStatusMsgs[i].iCode == rc) 84 {85 82 return &g_aStatusMsgs[i]; 86 }87 }88 83 89 84 /* 90 85 * Need to use the temporary stuff. 91 86 */ 92 int iMsg = ASMAtomicXchgU32(&g_iUnknownMsgs, (g_iUnknownMsgs + 1) % ELEMENTS(g_aUnknownMsgs));87 int32_t iMsg = (ASMAtomicIncU32(&g_iUnknownMsgs) - 1) % RT_ELEMENTS(g_aUnknownMsgs); 93 88 RTStrPrintf(&g_aszUnknownStr[iMsg][0], sizeof(g_aszUnknownStr[iMsg]), "Unknown Status 0x%X\n", rc); 94 89 return &g_aUnknownMsgs[iMsg]; 95 90 } 91 92 93 RTDECL(PCRTCOMERRMSG) RTErrCOMGet(uint32_t rc) 94 { 95 return RTErrWinGet((long)rc); 96 } 97
Note:
See TracChangeset
for help on using the changeset viewer.