kernel32/tests: Fix check for invalid type value.

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Hentschel 2018-03-29 19:28:50 +02:00 committed by Alexandre Julliard
parent 2417221531
commit 3d8d811be1
2 changed files with 4 additions and 2 deletions

View File

@ -4720,7 +4720,7 @@ static void test_GetGeoInfo(void)
/* try invalid type value */
SetLastError(0xdeadbeef);
ret = pGetGeoInfoA(203, GEO_CURRENCYSYMBOL + 1, NULL, 0, 0);
ret = pGetGeoInfoA(203, GEO_ID + 1, NULL, 0, 0);
ok(ret == 0, "got %d\n", ret);
ok(GetLastError() == ERROR_INVALID_FLAGS, "got %d\n", GetLastError());
}

View File

@ -826,7 +826,9 @@ enum SYSGEOTYPE
GEO_PARENT,
GEO_DIALINGCODE,
GEO_CURRENCYCODE,
GEO_CURRENCYSYMBOL
GEO_CURRENCYSYMBOL,
GEO_NAME,
GEO_ID
};
enum SYSGEOCLASS