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
Alexandre Julliard
f17483b936
ntdll: Check the loadorder for .so dlls on the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-26 16:16:12 +01:00
Alexandre Julliard
e8ec7a8cec
ntdll: Don't pass the application name to get_load_order().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-26 16:16:12 +01:00
Alexandre Julliard
47fed8f5bc
ntdll: Don't set the DllPath parameter by default.
...
Recent Windows versions don't set it either.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:43:49 +01:00
Alexandre Julliard
28fe84da45
ntdll: Load the main image from the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:43:49 +01:00
Mark Harmstone
3fd9a423d4
ntdll: Take into account ordinal base when resolving forwarded ordinals.
...
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-24 20:43:48 +01:00
Alexandre Julliard
ab8f0c3e21
ntdll: Load builtin dlls through NtMapViewOfSection().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-22 20:38:45 +01:00
Alexandre Julliard
0ea5772113
ntdll: Use NtAreMappedFilesTheSame() to find duplicated module mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-22 20:38:25 +01:00
Alexandre Julliard
4ea07a30ce
ntdll: Check the builtin signature when creating a module.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-17 11:49:23 +01:00
Rémi Bernon
4d5824112e
ntdll: Don't call possibly deadly DbgUiGetThreadDebugObject.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 22:16:54 +01:00
Alexandre Julliard
e0fc8d7acb
ntdll: Call the Unix entry point from the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 20:36:43 +01:00
Alexandre Julliard
22da5bd757
ntdll: Move the loadorder support to the Unix library.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 20:36:43 +01:00
Alexandre Julliard
8824474e08
ntdll: Move the builtin dll list to virtual.c.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 10:58:14 +01:00
Alexandre Julliard
e5cade0ff1
ntdll: Remove DLL_WINE_PREATTACH support.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-02 11:01:25 +01:00
Zebediah Figura
0421ea3975
ntdll: Stub Wow64Transition.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45567
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-01 18:03:18 +01:00
Alexandre Julliard
65cff86951
ntdll: Remove no longer needed Unix codepage functions from the PE side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-28 11:29:46 +01:00
Alexandre Julliard
1e2b060eb1
ntdll: Pass correct pointer to build_module().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50731
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-27 17:42:50 +01:00
Alexandre Julliard
a46515d449
ntdll: Get rid of attach_implicitly_loaded_dlls().
...
This should no longer happen.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-26 16:24:25 +01:00
Alexandre Julliard
305cb8af27
ntdll: Initialize the ShowDotFiles option on the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-25 16:15:26 +01:00
Alexandre Julliard
93eb4dbde8
ntdll: Add a separate helper for creating the initial ntdll module.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-25 16:15:26 +01:00
Alexandre Julliard
d89b304eb7
ntdll: Avoid sign conversion warnings in Thumb-2 relocation processing.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-19 23:46:25 +01:00
Alexandre Julliard
3f3f673c29
ntdll: Print the version mismatch error from the Unix side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-19 22:54:09 +01:00
Alexandre Julliard
37600028fc
ntdll: Check the prefer-native flag in the PE header for default load order.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-18 11:11:22 +01:00
Alexandre Julliard
58eceff167
ntdll: Don't use wine/server.h from the PE side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 23:01:37 +01:00
Alexandre Julliard
c2c57e8dba
ntdll: Use the SECTION_IMAGE_INFORMATION bitfields where possible.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 21:20:47 +01:00
Alexandre Julliard
e7fa4fd147
server: Remove the load/unload_dll requests and the dll list.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-11 16:31:30 +01:00
Alexandre Julliard
7163c78234
ntdll: Close the debug port on thread exit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-11 16:31:30 +01:00
Alexandre Julliard
4f2ed66a5f
server: Use TEB->ArbitraryUserPointer to store the loaded dll names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-11 11:49:41 +01:00
David Koolhoven
4f7a4146cd
ntdll: Don't try to convert module to 64-bit if it doesn't contain code.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50647
Signed-off-by: David Koolhoven <david@koolhoven-home.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-10 09:20:46 +01:00
Alexandre Julliard
d7bdd5a554
ntdll: Pass the full NT path name to load_builtin_dll().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-09 13:23:17 +01:00
Alexandre Julliard
80898bfee0
ntdll: Fix loading of section table in get_cor_header().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50613
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-04 15:41:02 +01:00
Alexandre Julliard
123023eac7
server: Fetch the data for the debug events from the process memory views.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-02 10:12:56 +01:00
Alexandre Julliard
72baffdb6d
ntdll: Load the main module before the other dlls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-02 10:12:16 +01:00
Alexandre Julliard
5fef775ddf
ntdll: Delay mapping a module until we have found the final one to load.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-23 16:50:35 +01:00
Alexandre Julliard
63b6295368
ntdll: Check for valid architecture before mapping the module.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-23 11:30:55 +01:00
Alexandre Julliard
7203ad0ecd
ntdll: Load the COR header directly from the file handle.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-23 11:30:55 +01:00
Zebediah Figura
16592ca918
ntdll: Set the process detaching flag before calling FLS callbacks.
...
So that we will not deadlock trying to acquire fls_section.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-07 21:21:14 +01:00
Paul Gofman
c181a0ad59
ntdll: Use WINAPI calling convention for stub_entry_point().
...
Otherwise it ends up being stdcall function in the gcc PE build and
cdecl in ELF while allocate_stub() currently assumes cdecl.
Fixes missing function details output on x64.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-29 21:08:32 +01:00
Michael Stefaniuc
636d398c7d
ntdll: Use wide-char string literals.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 09:37:42 +01:00
Zebediah Figura
74ec9773dd
ntdll: Use a dynamically allocated buffer in find_forwarded_export() if necessary.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50105
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-23 21:05:04 +01:00
Paul Gofman
ec1ea1ea1b
ntdll: Call FLS callbacks.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 22:30:05 +02:00
Paul Gofman
87ea7698ab
ntdll: Allocate TEB FLS data in LdrInitializeThunk().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 12:40:30 +02:00
Paul Gofman
905deff5da
ntdll: Reimplement FLS data management on top of up to date structures.
...
Win10 18132 introduced increased FLS data limit and entirely changed
underlying structure.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 12:40:29 +02:00
Paul Gofman
36981ad033
ntdll: Introduce RtlProcessFlsData() and use it for FLS data destruction.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 12:40:29 +02:00
Alexandre Julliard
e5c0e8e296
ntdll: Use load_dll() to load kernel32 to support PE format.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-28 19:38:42 +02:00
Alexandre Julliard
a014f413d6
ntdll: Add support for loading a Unix helper library from builtin dlls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-21 13:41:28 +02:00
Alexandre Julliard
4c45348f78
ntdll: Get rid of the exec_process() Unix library callback.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-02 15:24:01 +02:00
Alexandre Julliard
f51cd0a1b5
ntdll: Use the process parameters directly in exec_process().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-02 15:09:33 +02:00
Alexandre Julliard
9e973954fd
ntdll: Get rid of the server_init_process_done() Unix library callback.
...
This time without setting Eip to 0.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 18:40:08 +02:00
Alexandre Julliard
f7e4fd0cf8
kernel32: Remove the no longer used __wine_start_process() function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 16:41:03 +02:00