Module: wine Branch: master Commit: 35b24f1ab55f66f01ae402aaa8e18632a92cebef URL: http://source.winehq.org/git/wine.git/?a=commit;h=35b24f1ab55f66f01ae402aaa8...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Nov 12 15:19:58 2014 +0100
gameux: Simplify the check for an empty string (PVS-Studio).
---
dlls/gameux/gamestatistics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c index f49d73a..7c95065 100644 --- a/dlls/gameux/gamestatistics.c +++ b/dlls/gameux/gamestatistics.c @@ -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;