gameux: Simplify the check for an empty string (PVS-Studio).

oldstable
Michael Stefaniuc 2014-11-12 15:19:58 +01:00 committed by Alexandre Julliard
parent 066fd36ec3
commit 35b24f1ab5
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
{
IXMLDOMElement *categoryElement = NULL;
if(lstrlenW(stats->categories[i].sName)==0)
if(!stats->categories[i].sName[0])
continue;
V_VT(&vValue) = VT_INT;
@ -218,7 +218,7 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
{
for(j=0; j<MAX_STATS_PER_CATEGORY; ++j)
{
if(lstrlenW(stats->categories[i].stats[j].sName)==0)
if(!stats->categories[i].stats[j].sName[0])
continue;
V_VT(&vValue) = VT_INT;