kernel32: Make GetUserGeoID() always succeed if geoclass is valid.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46196 Signed-off-by: João Diogo Craveiro Ferreira <devilj@outlook.pt> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c93aa1095e
commit
a31dec5fa9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue