[PATCH 1/2] winnls.h: Add useless element GEOCLASS_ALL to enum SYSGEOCLASS.

João Diogo Ferreira devilj at outlook.pt
Wed Oct 2 23:39:45 CDT 2019


This is a seemingly useless value that's available since Windows 8,
according to MSDN. I took its value from mingw-w64, and they define it as 0.
All the Windows functions that I've tested fail when called with this argument.

Nevertheless, it remains a (technically) valid argument to be used with a few
functions, such as GetUserGeoID. So I decided to add this case to WineTest,
so we can be sure that it remains a useless value indeed :)

For this reason, I added this value to Wine's headers.

Signed-off-by: João Diogo Craveiro Ferreira <devilj at outlook.pt>
---
 include/winnls.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/winnls.h b/include/winnls.h
index e790da4832..e810c44af7 100644
--- a/include/winnls.h
+++ b/include/winnls.h
@@ -833,6 +833,7 @@ enum SYSGEOTYPE
 
 enum SYSGEOCLASS
 {
+    GEOCLASS_ALL = 0,
     GEOCLASS_REGION = 14,
     GEOCLASS_NATION = 16
 };
-- 
2.23.0



More information about the wine-devel mailing list