Nikolay Sivov
15aa8c6fb8
kernelbase: Add SetThreadInformation().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52956
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-20 14:36:44 +02:00
Rémi Bernon
0f9ad11a27
kernel32/tests: Mark activatableClass wrong xmlns test as broken on w1064v1909.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-20 12:24:38 +02:00
Nikolay Sivov
116c718a53
kernel32/tests: Extend VirtualAllocEx() tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-20 11:37:20 +02:00
Fabian Maurer
f391e9cf1e
kernel32: Prevent null pointer dereference in WritePrivateProfileStructW.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49285
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-18 18:37:30 +02:00
Rémi Bernon
3728b2b7d2
ntdll: Fail to allocate large blocks if heap isn't growable.
...
This tweaks the test sizes so that it passes on Wine too. The created
heap should be large enough to hold the requested alloc size, but the
allocation still fails.
Windows seems to have a specific lower threshold for large blocks with
non growable heaps, but it's probably not very useful to match it.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-18 18:28:59 +02:00
Rémi Bernon
074177b8b0
ntdll: Rewrite RtlWalkHeap and enumerate large blocks.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Rémi Bernon
e2258ef559
ntdll: Split RtlFreeHeap to a separate heap_free helper.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Rémi Bernon
dadb1fa72f
ntdll: Split RtlAllocateHeap to a separate heap_allocate helper.
...
Factoring out locking and status handling.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 12:50:18 +02:00
Nikolay Sivov
1e2bc2f50e
kernel32: Implement UnmapViewOfFileEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-06 19:17:01 +02:00
Francois Gouget
5479e9f276
kernel32/tests: Fix a typo in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-06 19:16:35 +02:00
Rémi Bernon
d823e344c8
kernel32/tests: Add some RtlWalkHeap and more HeapWalk tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
dac05029bd
kernel32/tests: Add more block layout tests with alloc flags.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
00c64fcb01
ntdll: Ignore HEAP_(TAIL|FREE)_CHECKING_ENABLED flags in RtlCreateHeap.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
a21c93cde6
kernel32/tests: Check that HeapCreate should ignore checking flags.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
1f490ec1a5
ntdll: Respect HEAP_NO_SERIALIZE flag in HeapLock / HeapUnlock.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
2e47e23df1
kernel32/tests: Add some HEAP_NO_SERIALIZE flag / LFH locking tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Rémi Bernon
f555b1b3bb
kernel32/tests: Reduce layout tests verbosity by skipping some sizes.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-05 18:33:28 +02:00
Alexandre Julliard
dc37b66d17
kernelbase: Reimplement GetTimeFormatA().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 08:56:25 +02:00
Alexandre Julliard
fc26407e8e
kernelbase: Reimplement GetDateFormatA().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 08:55:45 +02:00
Alexandre Julliard
1b127e24dc
kernelbase: Reimplement GetTimeFormatW/Ex() using get_locale_info().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 08:55:19 +02:00
Alexandre Julliard
6ccdd7f8f5
kernelbase: Reimplement GetDateFormatW/Ex() using get_locale_info().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 08:51:43 +02:00
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
Alexandre Julliard
42afb693b1
kernel32: Reimplement GetCurrencyFormatA().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 12:26:28 +02:00
Alexandre Julliard
b6bf69ef80
kernel32: Reimplement GetNumberFormatA().
...
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
Alex Henrie
8a5d8d6cf9
kernel32: Fix percentage calculation in GetSystemPowerStatus.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 13:20:37 +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