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

Michael Stefaniuc mstefani at redhat.de
Wed Nov 12 08:19:58 CST 2014


---
 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;
-- 
1.9.3



More information about the wine-patches mailing list