VirtualBox

Changeset 8482 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 29, 2008 9:25:14 PM (17 years ago)
Author:
vboxsync
Message:

Don't return the last entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/err/errmsgxpcom.cpp

    r8402 r8482  
    4949{
    5050//#include "errmsgxpcomdata.h"
     51    { 0, "NS_SUCCESS", "Success" },
    5152    { NULL, NULL, 0 }
    5253};
     
    7273{
    7374    unsigned i;
    74     for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs); i++)
     75    for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) - 1; i++)
    7576        if (g_aStatusMsgs[i].iCode == rc)
    7677            return &g_aStatusMsgs[i];
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