- don't display garbage in the location combo box

svn path=/trunk/; revision=65122
This commit is contained in:
Kamil Hornicek 2014-10-30 12:15:11 +00:00
parent 2fc51b27ef
commit 535667ca32

View 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,