VirtualBox

Changeset 26749 in vbox for trunk


Ignore:
Timestamp:
Feb 24, 2010 2:45:16 PM (15 years ago)
Author:
vboxsync
Message:

HostServices/GuestProperties: missing rc check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r26603 r26749  
    793793     */
    794794    char pszPatterns[MAX_PATTERN_LEN];
    795     for (unsigned i = 0; i < cchPatterns - 1; ++i)
    796         if (pcchPatterns[i] != '\0')
    797             pszPatterns[i] = pcchPatterns[i];
    798         else
    799             pszPatterns[i] = '|';
    800     pszPatterns[cchPatterns - 1] = '\0';
     795    if (RT_SUCCESS(rc))
     796    {
     797        for (unsigned i = 0; i < cchPatterns - 1; ++i)
     798            if (pcchPatterns[i] != '\0')
     799                pszPatterns[i] = pcchPatterns[i];
     800            else
     801                pszPatterns[i] = '|';
     802        pszPatterns[cchPatterns - 1] = '\0';
     803    }
    801804
    802805    /*
     
    827830        }
    828831    }
    829     buffer.append(4, '\0');  /* The final terminators */
     832    if (RT_SUCCESS(rc))
     833        buffer.append(4, '\0');  /* The final terminators */
    830834
    831835    /*
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