Alexandre Julliard
9afc20949a
kernelbase: Reimplement GetCurrencyFormatW/Ex() using get_locale_info().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 12:26:28 +02:00
Alexandre Julliard
56099a3124
kernelbase: Reimplement GetNumberFormatW/Ex() using get_locale_info().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 12:26:28 +02:00
Francois Gouget
871692e259
kernel32/tests: Fix a copy/paste error in an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-02 22:43:53 +02:00
Alexandre Julliard
ea1eae646d
kernelbase: Implement ResolveLocaleName().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-02 14:12:10 +02:00
Paul Gofman
e015409e74
kernel32/tests: Add a broken last error result in test_CopyFileW().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52858
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-27 17:24:57 +02:00
Francois Gouget
c6c3cdc697
kernel32/tests: Fix the spelling of a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-27 17:24:02 +02:00
Francois Gouget
84bce45eba
kernel32/tests: Remove a couple of unnecessary NULL casts.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-27 17:23:30 +02:00
Alexandre Julliard
f68cccc825
kernel32/tests: Mark a failing test as broken.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52861
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-27 16:14:20 +02:00
Rémi Bernon
39153c9851
kernel32/tests: Add some RtlGetUserInfoHeap tests.
...
And corresponding RtlSetUserValueHeap and RtlSetUserFlagsHeap tests.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 12:27:11 +02:00
Rémi Bernon
3757a8f1ab
kernel32/tests: Add some heap block layout tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 12:26:36 +02:00
Eric Pouech
56056f39d9
kernel32/tests: Adapt duplicate console handle test to non-Win7 handles.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 13:06:19 +02:00
Eric Pouech
fdfd19cb47
kernel32/tests: Make the console tests pass if current console is shell-no-window.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 13:06:19 +02:00
Rémi Bernon
43fe980818
ntdll: Fix main heap struct layout and flags members.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:49 +02:00
Rémi Bernon
eb087788db
kernel32/tests: Reduce the number of GlobalAlloc size tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:42 +02:00
Rémi Bernon
af6dd8eb0c
kernel32/tests: Tweak tests results for w7pro64.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-19 21:41:39 +02:00
Zhiyi Zhang
596b647391
kernel32/tests: Add more CreateActCtx() tests.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 18:15:48 +02:00
Rémi Bernon
29fe143544
kernel32/tests: Add some HeapWalk tests for the LFH frontend.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 11:09:04 +02:00
Rémi Bernon
98066b5a8e
kernel32/tests: Cleanup and add Heap(Query|Set)Information tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 11:08:59 +02:00
Rémi Bernon
0237d1702f
kernel32/tests: Add some HeapWalk tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 11:07:34 +02:00
Rémi Bernon
13a4da538c
kernel32/tests: Add some GetProcessHeaps tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 11:07:25 +02:00
Rémi Bernon
93d5aba89c
kernel32/tests: Add invalid pointer heap validation tests.
...
Adding commented-out crashing tests to make it obvious that they were
tested and that HeapFree or HeapReAlloc don't validate pointers.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 11:05:24 +02:00
Jacek Caban
b4d91adb16
kernelbase: Add support for CREATE_NO_WINDOW flag in CreateProcess.
...
Based on patches by Eric Pouech and Torge Matthies.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-12 21:39:42 +02:00
Eric Pouech
313b10991b
kernel32/tests: Add more CreateProcess console management tests.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-12 21:39:42 +02:00
Zhiyi Zhang
9eff8911c3
kernel32/tests: Check against INVALID_HANDLE_VALUE for CreateActCtxW() return values.
...
CreateActCtxW() returns INVALID_HANDLE_VALUE on error.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-12 21:39:42 +02:00
Paul Gofman
02faaea93b
kernelbase: Reset last error on success in CopyFileExW().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 21:15:56 +02:00
Alexandre Julliard
1790546d03
kernelbase: Support UTF-8 as default Ansi codepage in WideCharToMultiByte().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 17:34:48 +02:00
Alexandre Julliard
8993e15cfa
kernelbase: Support UTF-7/8 codepages in get_codepage_table().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-11 17:34:48 +02:00
Rémi Bernon
5b4009e8c2
kernel32/tests: Cleanup heap pointer alignment tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 23:06:16 +02:00
Rémi Bernon
8eb9cbd6e7
kernel32/tests: Cleanup heap allocation functions tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 23:06:13 +02:00
Rémi Bernon
60e0ae2f4c
kernel32/tests: Load all test function pointers on init.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 23:06:02 +02:00
Alexandre Julliard
6517f6c239
kernelbase: Implement NlsValidateLocale().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 22:44:39 +02:00
Alexandre Julliard
812ebc67a4
kernelbase: Fix IsValidLocale() and GetLocaleInfo() with special LOCALE_* identifiers.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-07 22:44:39 +02:00
Rémi Bernon
c944f64166
ntdll: Support activatableClass activation context elements.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-06 23:07:20 +02:00
Rémi Bernon
c7f72cc400
kernel32/tests: Add some activatableClass manifest attribute tests.
...
And the matching ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES
activation context section.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-06 23:07:20 +02:00
Rémi Bernon
f411193781
kernel32/tests: Cleanup and add more heap layout tests.
...
Updating the tests to check the new, post-vista, layout.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-05 17:55:31 +02:00
Rémi Bernon
727a162fc6
kernel32/tests: Add broken results for GlobalMemoryStatus test.
...
As seen on win81_cw-gtx560-32 and win81_cw-rx460-32.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-05 17:55:29 +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
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
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
Alexandre Julliard
78a33f9684
kernelbase: Reimplement SetLocaleInfoW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 11:03:37 +02:00
Rémi Bernon
d31be111aa
kernel32/tests: Add some HGLOBAL/HLOCAL entry layout tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:24:37 +02:00
Rémi Bernon
d32bc81ea4
kernel32/tests: Add some HGLOBAL/HLOCAL limits tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:24:31 +02:00
Rémi Bernon
1f472e905c
kernel32/tests: Clean LocalAlloc tests and move them together.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:24:22 +02:00
Rémi Bernon
60805ce139
kernel32/tests: Clean GlobalAlloc tests and move them together.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:24:17 +02:00
Rémi Bernon
b4b097512f
kernel32/tests: Use 0xdeadbeef directly instead of a custom define.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:24:11 +02:00
Dmitry Timoshkov
edb5762b55
kernel32/tests: Add a test to show that services.exe is supposed to run in the session 0.
...
IsWindowsService() from Microsoft.Extensions.Hosting.WindowsServices (.Net 4.6, 4.8, 5.0)
depends on this.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:22:45 +02:00
Rémi Bernon
4d122a26e5
kernel32/tests: Remove GlobalMemoryStatus loop and relax the checks.
...
The test is a bit too strict in some case on Windows, relaxing it like
it was initially is probably fine now that the counters are correct.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-28 22:21:47 +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
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
Rémi Bernon
cabfefb026
kernel32/tests: Merge GlobalMemoryStatus(Ex) tests together.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:56:32 +01:00