Eric Pouech
0bf6066b2b
kernel32/tests: Remove temporary defines for long types migration.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-10 18:27:43 +01:00
Eric Pouech
65f36a9695
kernel32/tests/module: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-04 10:06:21 +01:00
Alexandre Julliard
77973e7e72
kernelbase: Implement IsApiSetImplemented().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-22 18:20:23 +01:00
Alexandre Julliard
cb2fb8c25e
ntdll: Implement ApiSetQueryApiSetPresence/Ex().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-22 18:20:23 +01:00
Alexandre Julliard
7b233f3032
ntdll: Map explicitly loaded apiset dlls to their target library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-22 18:20:23 +01:00
Alexandre Julliard
ac5ebb6192
kernel32/tests: Add tests for apiset query functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-18 22:10:47 +01:00
Alexandre Julliard
8796d34a80
kernel32/tests: Add a few more tests for apisets.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-17 22:16:03 +01:00
Paul Gofman
aee405e2cb
ntdll: Always try searching apiset DLLs in the default directories.
...
This is a temporary workaround until we have a correct apisets
implementation.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-23 10:55:30 +01:00
Paul Gofman
aa234f3a58
ntdll: Don't add dependencies for system dlls.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00
Paul Gofman
0dd37b02f9
ntdll: Store module dependencies in DDAG structure.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00
Paul Gofman
41c7652bbe
ntdll: Allocate DDAG node for module.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-03 21:06:48 +01:00
Paul Gofman
231542b39e
kernel32/tests: Add test for DDAG node dependencies structure.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-21 20:30:38 +02:00
Paul Gofman
7c523f4867
kernelbase: Fix string size variable overflow in GetModuleFileNameW().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51833
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-04 15:52:16 +02:00
Paul Gofman
39a3549093
ntdll: Implement LdrGetDllFullName() function.
...
Based on a patch by Alex Henrie.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 08:52:46 +02:00
Paul Gofman
50bc449a74
ntdll/tests: Add test for LdrGetDllFullName().
...
Based on a patch by Alex Henrie.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 08:52:24 +02:00
Paul Gofman
7ddd79b8f5
kernelbase: Sanitize flags in GetModuleHandleExW().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-27 17:40:15 +02:00
Paul Gofman
cf0a828b02
ntdll: Implement LdrGetDllHandleEx() function.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-27 17:40:15 +02:00
Alexandre Julliard
42de71c387
ntdll: Fail to load non-existent dlls, except during prefix bootstrap.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-31 21:01:31 +02:00
Alexandre Julliard
f404e309df
kernelbase: Don't fall back to dll loading for LOAD_LIBRARY_AS_DATAFILE.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-30 12:26:37 +02:00
Alexandre Julliard
bb065801a6
ntdll: Map the builtin or fake dll from the Wine dirs if it's missing from the prefix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-30 11:51:25 +02:00
André Hentschel
d96fe8e1f7
kernel32/tests: Remove support for PPC32.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-17 16:46:14 +02:00
Alexandre Julliard
a0a2b25a44
kernel32: Move Get/SetDllDirectory() implementation to ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-01 15:14:08 +02:00
Alexandre Julliard
0d9d816fc3
kernel32: Fix handling of LOAD_WITH_ALTERED_SEARCH_PATH when other search flags are specified.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46809
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-05 21:40:55 +02:00
Alexandre Julliard
35d202fc09
kernel32: Validate handle before freeing a LOAD_LIBRARY_AS_DATAFILE module.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46019
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-05 22:16:30 +02:00
Alexandre Julliard
c946922a9c
ntdll: Directly try to open the dll file instead of checking for existence first.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Alexandre Julliard
6fb00db51e
ntdll: Don't use current directory for libraries unless explicitly specified in the search path.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-06 19:57:27 +01:00
Michael Stefaniuc
80be3a460b
kernel32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:02:48 +02:00
Alex Henrie
84a5c59604
kernel32/tests: Drop module test workarounds for Windows <= 2000.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-10 18:26:56 +01:00
Alex Henrie
3675b7035e
kernel32/tests: Add missing return value check to module tests (Coverity).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 19:26:44 +01:00
Marcus Meissner
844b57e4d8
kernel32/tests: Fixed size to GetTempPathW.
...
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 20:27:08 +02:00
Alexandre Julliard
934cb440e0
kernel32/tests: Add tests for the LOAD_LIBRARY_SEARCH_* flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 11:30:27 +02:00
Alexandre Julliard
12167d2e36
kernel32: Implement AddDllDirectory and RemoveDllDirectory.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 08:16:52 +02:00
Alexandre Julliard
e99811aee2
kernel32: Implement SetDefaultDllDirectories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 13:29:22 +02:00
Sebastian Lackner
5272ca241b
ntdll: Set ldr.EntryPoint for main executable.
2014-10-07 20:22:13 +02:00
Sebastian Lackner
9d30002f7d
kernel32/tests: Add tests for K32GetModuleInformation.
2014-10-07 20:22:12 +02:00
Nikolay Sivov
2ab0002674
kernel32/tests: Test for LoadLibraryEx() with full path without extension.
2013-11-22 16:08:44 +01:00
Francois Gouget
f399e90306
kernel32/tests: Fix some module tests on Windows 8.
...
Windows 8 and 8.1 return some different error codes and
GetDllDirectory() handles buffer termination a bit differently.
2013-11-01 10:53:41 +01:00
Dmitry Timoshkov
f1a6bf70bf
kernel32/tests: Fix module tests compilation with __WINESRC__ defined.
2013-10-22 16:37:39 +02:00
André Hentschel
428180ce54
kernel32/tests: Fix crash on win8 in module.
2012-11-30 19:12:16 +01:00
Hans Leidekker
f96c7278e7
kernel32: Clear the module handle on failure in GetModuleHandleEx.
2012-04-05 14:51:33 +02:00
Hans Leidekker
e8a95bf683
kernel32: Return failure from GetModuleHandleEx if the module handle pointer is NULL.
2012-04-05 14:51:33 +02:00
Hans Leidekker
7133c000cd
kernel32/tests: Add tests for GetModuleHandleEx.
2012-04-05 14:51:33 +02:00
Alexandre Julliard
1998c22d1b
kernel32/tests: Avoid size_t in traces.
2011-11-22 18:19:06 +01:00
Thomas Faber
5d5fd2fa9b
kernel32/tests: Add tests for GetDllDirectory.
2011-11-09 11:33:58 +01:00
Francois Gouget
8e67930bd7
kernel32: Reset LastError if GetModuleFileName() succeeds.
2011-10-03 16:56:27 -05:00
André Hentschel
85386c2c6e
kernel32/tests: Don't test function directly when reporting GetLastError().
2011-01-12 14:59:43 +01:00
Jason Edmeades
99a0376a4f
kernel32: Return error on second attempt to free a module.
2010-01-18 14:26:16 +01:00
Paul Vriens
6d416e6934
kernel32/tests: Don't crash on WinMe.
2009-10-07 12:55:16 +02:00
Alexandre Julliard
2cd36b6b60
kernel32: Remove the file parameter check again in LoadLibraryExW since some broken apps pass garbage here.
2009-05-26 14:26:42 +02:00
Paul Vriens
ed55217444
kernel32/tests: Use skip instead of trace.
2008-09-22 12:15:17 +02:00