Rémi Bernon
54b37a3702
kernel32/tests: Avoid releasing invalid path pointer.
2022-12-02 11:04:45 +01:00
Rémi Bernon
4979ae5a94
kernelbase: Restore HEAP_REALLOC_IN_PLACE_ONLY usage in LocalReAlloc.
...
This effectively reverts 2be9b0ff4a
, which
incorrectly removed the flag, when the reallocation failures the tests
showed were coming from an underlying LFH in-place reallocation failure.
Thus, it restores todo_wine where appropriate while removing other todos
for sizes outside of the LFH block size range.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53996
2022-11-30 20:38:27 +01:00
Rémi Bernon
a568704c32
kernel32/tests: Add more GlobalReAlloc tests with larger size.
...
In place reallocation is possible, although it depends on the underlying
heap strategy. The LFH heap usually fails as it doesn't blocks to grow
or shrink out of their size class. Larger block (LFH is limited to 16K
blocks), more often allow in-place reallocation, and some native DLLs
depend on this.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53996
2022-11-30 20:38:27 +01:00
Rémi Bernon
b793367c67
kernel32/tests: Make sure the LFH is enabled for some sizes.
...
Making the GlobalReAlloc tests more sensible, as they fail to reallocate
when the block was allocated with the LFH and the new size wouldn't.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54012
2022-11-30 20:38:27 +01:00
Nikolay Sivov
8d9eb707c6
kernel32/profile: Trim spaces from section names on load.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53814
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-24 09:27:48 +01:00
Alexandre Julliard
b00a831d3d
kernel32/tests: Don't filter out the WINELOADER variable.
2022-11-23 11:07:30 +01:00
Nikolay Sivov
9c09288bf6
kernel32/tests: Remove workarounds for SetThreadIdealProcessor().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-22 18:40:13 +01:00
Rémi Bernon
03ad947420
kernelbase: Only discard HLOCAL with LMEM_MOVEABLE and if not locked.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
28bc3b0703
kernel32: Return success from GlobalReAlloc with locked HGLOBAL pointer.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
f43fc5121b
kernelbase: Avoid moving locked HLOCAL pointer without LMEM_MOVEABLE.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
c2c6536926
kernelbase: Handle LMEM_DISCARDABLE flag specifically in LocalReAlloc.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
86d09091e6
kernelbase: Handle LMEM_MODIFY flag first in LocalReAlloc.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
2be9b0ff4a
kernelbase: Don't try in-place HeapReAlloc in LocalReAlloc.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Rémi Bernon
170e046480
kernel32/tests: Add more (Global|Local)ReAlloc tests.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Santino Mazza
d5385c7177
kernelbase: Implement GetGeoInfoEx.
2022-11-22 18:27:30 +01:00
Santino Mazza
52ffd338fa
kernel32/tests: Test for GetGeoInfoEx.
2022-11-22 18:27:30 +01:00
Santino Mazza
f51c752c43
kernelbase: Create GetGeoInfoEx stub.
2022-11-22 18:27:30 +01:00
Alex Henrie
318d02723c
kernel32/tests: Avoid using GCC's typeof extension.
2022-11-22 18:27:30 +01:00
Nikolay Sivov
ce91ef6426
kernelbase: Add SetProcessInformation().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53954
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-11-21 13:09:41 +01:00
Santino Mazza
2581d48e5f
kernel32: Forward MapViewOfFileFromApp kernel32 to kernelbase.
2022-11-16 21:24:19 +01:00
Santino Mazza
663e533e7e
kernel32: Forward CreateFileMappingFromApp kernel32 to kernelbase.
2022-11-16 21:24:19 +01:00
Rémi Bernon
c7eb844ce0
kernel32: Lock heap and validate pointer in LocalHandle.
2022-11-15 18:05:07 +01:00
Rémi Bernon
d918919de0
kernel32: Validate pointer before calling HeapSize.
2022-11-15 18:05:07 +01:00
Eric Pouech
1addbe3e1d
kernel32/tests: Fix sporadic process test failure.
...
Current test tries to ensure that a handle, valid in process parent,
hasn't been inherited, but nothing guarantees that a valid handle
isn't present in child process with same value.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-14 13:13:02 +01:00
Rémi Bernon
fe3c5e93e2
ntdll: Implement RtlSetUserFlagsHeap.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53741
2022-11-10 22:00:35 +01:00
Rémi Bernon
bba4fa0fbb
ntdll: Check block user flags in RtlGetUserInfoHeap.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53741
2022-11-10 22:00:35 +01:00
Rémi Bernon
0f6e908405
ntdll: Check block user flags in RtlSetUserValueHeap.
...
Adding the same user flags as native, for Global/Local allocs, and
returning the pointer from Global/LocalHandle by default.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53741
2022-11-10 22:00:35 +01:00
Rémi Bernon
d99e9da90e
kernel32/tests: Test (Global|Local)Handle with heap allocated pointers.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53741
2022-11-10 22:00:35 +01:00
Rémi Bernon
5c928bc0ef
kernel32/tests: Test more Global/Local functions with invalid pointers.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53741
2022-11-10 22:00:35 +01:00
Evan Tang
f181e25a47
kernel32: Null-terminate the atom names passed to NtAddAtom.
...
Adobe Reader XI patches NtAddAtom() and expects the name to be null-terminated
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53872
2022-11-04 19:23:55 +01:00
Brendan Shanks
0d21e1cbcf
server: Only require THREAD_SET_LIMITED_INFORMATION access to set thread description.
2022-10-31 12:13:32 +01:00
Eric Pouech
35c65edcb9
kernel32/tests: Workaround some broken Windows behavior in console tests.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48105
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-26 15:03:05 +02:00
Jinoh Kang
ea9c9fe5bd
kernel32/tests: Add test for pipe name with a trailing backslash.
2022-10-26 15:03:05 +02:00
Michael Stefaniuc
03edb068de
kernel32/tests: Use ARRAY_SIZE instead of open coding it.
2022-10-25 10:58:49 +02:00
Hugh McMaster
03f5f72c13
kernel32/tests: Add tests for GetConsoleOriginalTitleA/W().
2022-10-17 18:14:01 +02:00
Hugh McMaster
4951ab6436
kernelbase: Add stubs for GetConsoleOriginalTitleA/W().
2022-10-17 18:13:54 +02:00
Hugh McMaster
c7b8da649d
kernel32/tests: Remove tests comparing expected output in certain functions.
...
The Windows versions of [Read|Write]ConsoleOutput[Attribute|Character]
appear to assign an uninitialized internal DWORD to the given pointer
address before returning.
As the functions fail (intentionally) in these tests, the value of the
DWORD is never set, so the tests end up comparing the expected value of
zero with random values.
This value of this test is very limited and is best removed.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53686
2022-10-17 17:51:02 +02:00
Daniel Lehman
f8dc38f9c2
kernelbase: Call NtCancelSynchronousIoFile in CancelSynchronousIo.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
2022-10-17 11:22:41 +02:00
Daniel Lehman
3a4674f256
kernel32/tests: Add tests for CancelSynchronousIo.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
2022-10-17 11:22:26 +02:00
Brendan Shanks
9150071b34
kernel32: Remove shared heap functionality.
2022-10-12 15:47:57 +02:00
Hugh McMaster
627f2b3557
kernelbase: Return full title length from GetConsoleTitle().
2022-10-10 11:19:44 +02:00
Hugh McMaster
e6bea0328a
kernel32/tests: Add tests for GetConsoleTitle().
2022-10-10 11:19:43 +02:00
Alexandre Julliard
7ab46c4f21
unicode: Update to Unicode 15.0.0.
2022-09-14 22:38:34 +02:00
Alexandre Julliard
5314fac5b7
kernel32/tests: Fix affinity test when there are too many CPUs.
2022-09-12 12:46:25 +02:00
Alexandre Julliard
e031f355b0
kernel32/tests: Don't test console flags that are modified by WINETEST_COLOR=1.
2022-09-06 13:30:21 +02:00
Joel Holdsworth
7546b4a63d
mountmgr.sys: Implemented FileFsSizeInformation and FileFsFullSizeInformation volume queries.
...
This patch fixes GetDiskFreeSpaceA/W when an NT-style GUID volume path is
provided e.g. "\\?\Volume{00000000-0000-0000-0000-000000000043}\" as might be
retrieved by FindFirstVolumeA/W and FindNextVolumeA/W.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53547
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-09-01 17:49:33 +02:00
Joel Holdsworth
3741ecf079
kernel32/tests: Added tests for GetDiskFreeSpaceA/W with volume GUID paths.
...
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-09-01 17:49:30 +02:00
Joel Holdsworth
d40af92f32
kernel32/tests: GetDiskFreeSpaceA/W test targetted at a real drive.
...
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk>
2022-09-01 17:49:27 +02:00
Alexandre Julliard
7c7e7e9163
kernel32/tests: Don't assume that notifications are instantaneous.
2022-09-01 16:00:10 +02:00
Gijs Vermeulen
a9ed113347
kernel32: Add SetProcessDefaultCpuSets stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53589
2022-08-25 11:57:24 -05:00