Commit a31dec5f authored by João Diogo Ferreira's avatar João Diogo Ferreira Committed by Alexandre Julliard

kernel32: Make GetUserGeoID() always succeed if geoclass is valid.

parent c93aa109
......@@ -2810,7 +2810,7 @@ static const struct geoinfo_t *get_geoinfo_dataptr(GEOID geoid)
*/
GEOID WINAPI GetUserGeoID(GEOCLASS geoclass)
{
GEOID ret = GEOID_NOT_AVAILABLE;
GEOID ret = 39070;
static const WCHAR geoW[] = {'G','e','o',0};
static const WCHAR nationW[] = {'N','a','t','i','o','n',0};
static const WCHAR regionW[] = {'R','e','g','i','o','n',0};
......@@ -2831,7 +2831,7 @@ GEOID WINAPI GetUserGeoID(GEOCLASS geoclass)
break;
default:
WARN("Unknown geoclass %d\n", geoclass);
return ret;
return GEOID_NOT_AVAILABLE;
}
if (!(hkey = create_registry_key())) return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment