[INTL]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 30 Oct 2014 12:15:11 +0000 (12:15 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 30 Oct 2014 12:15:11 +0000 (12:15 +0000)
- don't display garbage in the location combo box

svn path=/trunk/; revision=65122

reactos/dll/cpl/intl/generalp.c

index 8fadb89..7a03d1f 100644 (file)
@@ -234,7 +234,9 @@ LocationsEnumProc(GEOID gId)
     TCHAR loc[MAX_STR_SIZE];
     INT index;
 
-    GetGeoInfo(gId, GEO_FRIENDLYNAME, loc, MAX_STR_SIZE, LANG_SYSTEM_DEFAULT);
+    if(GetGeoInfo(gId, GEO_FRIENDLYNAME, loc, MAX_STR_SIZE, LANG_SYSTEM_DEFAULT) == 0)
+        return TRUE;
+
     index = (INT)SendMessage(hGeoList,
                              CB_ADDSTRING,
                              0,