Author: khornicek
Date: Thu Oct 30 12:15:11 2014
New Revision: 65122
URL:
http://svn.reactos.org/svn/reactos?rev=65122&view=rev
Log:
[INTL]
- don't display garbage in the location combo box
Modified:
trunk/reactos/dll/cpl/intl/generalp.c
Modified: trunk/reactos/dll/cpl/intl/generalp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/generalp.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/intl/generalp.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/generalp.c [iso-8859-1] Thu Oct 30 12:15:11 2014
@@ -234,7 +234,9 @@
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,