Alexandre Julliard
a074d0c3a8
kernelbase: Reimplement GetCalendarInfoEx/W using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-05 16:59:09 +02:00
Rémi Bernon
dee510bd32
kernelbase: Use the same HLOCAL flags / lock layout as native.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-04 18:40:26 +02:00
Rémi Bernon
4f596c04be
kernelbase: Remove unnecessary handler from LocalUnlock.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-04 18:40:26 +02:00
Rémi Bernon
e358731f96
kernelbase: Remove unnecessary handler from LocalLock.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-04 18:40:26 +02:00
Rémi Bernon
2fcb072f03
kernelbase: Use the same HLOCAL entry pointer alignment as native.
...
This changes the GlobalUnlock todo_wine as we previously considered the
invalid mem handle as a valid pointer, and we now instead check handle
validity.
Returning TRUE in for an invalid handle doesn't seem very important, and
a corner case, and it breaks compatibility and imm32 tests.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-04 18:40:26 +02:00
Alexandre Julliard
c30626505b
kernelbase: Check the locale name instead of the LCID to detect changes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-01 20:30:57 +02:00
Alexandre Julliard
c0ff1a221b
kernelbase: Set system/user locales by name if they have no LCID.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-01 20:30:57 +02:00
Rémi Bernon
3c9d2cbaea
kernelbase: Allocate HLOCAL / HGLOBAL from a static handle table.
...
Sharing the table pointers through KernelBaseGetGlobalData to check for
handle validity in kernel32, and as native does it.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 22:02:51 +02:00
Rémi Bernon
981283a50b
kernelbase: Implement internal KernelBaseGetGlobalData.
...
And call it from kernel32 to get access to kernelbase global data.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 22:02:51 +02:00
Rémi Bernon
82bab8366d
kernelbase: Check pointer validity in unsafe_ptr_from_HLOCAL.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 21:25:44 +02:00
Rémi Bernon
458f49dee1
kernelbase: Check handle validity in unsafe_mem_from_HLOCAL.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 21:25:39 +02:00
Alexandre Julliard
689e63485c
kernel32: Move the error message table to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 10:57:07 +02:00
Alexandre Julliard
6d06171485
kernel32: Move the language group resources to kernelbase.
...
And enable translating them through the po files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 10:57:07 +02:00
Alexandre Julliard
86baeafc76
kernelbase: Reimplement the Geo ID functions using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 07:46:13 +02:00
Alexandre Julliard
c0fda77fe2
kernelbase: Remove the old GetLocaleInfoEx/W implementation.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard
78a33f9684
kernelbase: Reimplement SetLocaleInfoW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard
5014a44e3c
kernelbase: Reimplement updating the locale values in the registry on locale change.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Alexandre Julliard
1398a01064
kernelbase: Reimplement fetching customized values from the registry in GetLocaleInfoW/Ex.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard
781086670d
kernelbase: Reimplement values computed from date/time formats in GetLocaleInfoW/Ex.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard
c957158730
kernelbase: Reimplement values computed from currency formats in GetLocaleInfoW/Ex.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard
08a9dc5031
kernelbase: Reimplement misc locale info values in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard
07cbbdeaaa
kernelbase: Reimplement currency formatting values in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Alexandre Julliard
ba43e4cfca
kernelbase: Reimplement number formatting values in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 22:12:49 +02:00
Rémi Bernon
4ba774d85e
kernelbase: Make (Global|Local)* traces and identifiers more consistent.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Rémi Bernon
424e38f3f8
kernelbase: Fix indentation of LocalReAlloc.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Alexandre Julliard
6549f1f3d2
kernelbase: Reimplement LOCALE_SSORTNAME in GetLocaleInfoW/Ex.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Alexandre Julliard
d39c6851d3
kernelbase: Reimplement LOCALE_FONTSIGNATURE/SOPENTYPELANGUAGETAG in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:51 +02:00
Alexandre Julliard
712e4757c6
kernelbase: Reimplement misc format values in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard
00fd05d447
kernelbase: Reimplement calendar options in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard
30e8a28c3d
kernelbase: Reimplement date/time format strings in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard
ec5d3c9fe7
kernelbase: Reimplement LOCALE_SNATIVEDIGITS in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:35:23 +02:00
Alexandre Julliard
f0d43939ff
kernelbase: Reimplement LOCALE_ICOUNTRY/IGEOID in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:38:37 +02:00
Alexandre Julliard
62cd33e6b0
kernelbase: Reimplement LOCALE_*CURRNAME/CURRENCY in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:41 +02:00
Alexandre Julliard
37278557dd
kernelbase: Reimplement LOCALE_*AM/PM in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:35 +02:00
Alexandre Julliard
9ef9d0293a
kernelbase: Reimplement LOCALE_*PERCENT in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:30 +02:00
Alexandre Julliard
17928e6a01
kernelbase: Reimplement LOCALE_*INFINITY/NAN in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 08:36:20 +02:00
Alexandre Julliard
ff323aeb65
kernelbase: Reimplement LOCALE_*MONTHNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:47 +02:00
Alexandre Julliard
5bf289ea37
kernelbase: Reimplement LOCALE_*DAYNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:46 +02:00
Alexandre Julliard
b1e17a053a
kernelbase: Reimplement LOCALE_*DEFAULTCODEPAGE in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:45 +02:00
Alexandre Julliard
f0db567f67
kernelbase: Reimplement LOCALE_*DISPLAYNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:30 +02:00
Alexandre Julliard
2c70ed249a
kernelbase: Reimplement LOCALE_*CTRYNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:28 +02:00
Alexandre Julliard
85a39a9773
kernelbase: Reimplement LOCALE_*LANGNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:20:48 +02:00
Alexandre Julliard
956c88db18
kernelbase: Reimplement LOCALE_ILANGUAGE/IDEFAULTLANGUAGE in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard
412e79181f
kernelbase: Reimplement LCIDToLocaleName() using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard
0f7cd3d685
kernelbase: Reimplement LOCALE_SPARENT in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Alexandre Julliard
d370618a5a
kernelbase: Reimplement LOCALE_SNAME in GetLocaleInfoW/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 18:23:57 +02:00
Rémi Bernon
bb17583239
kernelbase: Fix GlobalMemoryStatusEx counters.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:56:36 +01:00
Alexandre Julliard
989f7d6481
make_unicode: Generate the language groups registry keys.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 23:22:06 +01:00
Alexandre Julliard
4c51d77951
kernelbase: Reimplement EnumSystemLocalesA/W/Ex using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 17:17:10 +01:00
Alexandre Julliard
1f70f72b29
kernelbase: Reimplement EnumUILanguages() using the locale.nls data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-24 17:11:08 +01:00