=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: kernel32/tests: Fix check for invalid type value.
Alexandre Julliard
julliard at winehq.org
Fri Mar 30 12:32:36 CDT 2018
Module: wine
Branch: master
Commit: 3d8d811be165cd9586d1389206c568b5c6975305
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3d8d811be165cd9586d1389206c568b5c6975305
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Mar 29 19:28:50 2018 +0200
kernel32/tests: Fix check for invalid type value.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/locale.c | 2 +-
include/winnls.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index efb4231..5d5cc17 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -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());
}
diff --git a/include/winnls.h b/include/winnls.h
index 1191111..99a30e4 100644
--- a/include/winnls.h
+++ b/include/winnls.h
@@ -826,7 +826,9 @@ enum SYSGEOTYPE
GEO_PARENT,
GEO_DIALINGCODE,
GEO_CURRENCYCODE,
- GEO_CURRENCYSYMBOL
+ GEO_CURRENCYSYMBOL,
+ GEO_NAME,
+ GEO_ID
};
enum SYSGEOCLASS
More information about the wine-cvs
mailing list