Commit Graph

211 Commits

Author SHA1 Message Date
Vincent Povirk 4dec065e2b mscoree: Restore previous domain whenever we set it.
Unmanaged APIs could be called directly or indirectly by managed code in
any domain, and we could create problems by not restoring the old one.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 18:41:05 +09:00
Vincent Povirk 870628fd28 mscoree/tests: Loading the runtime works on x86-64 now.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:01 +09:00
Vincent Povirk f1157511a7 mscoree: Update Wine Mono to 4.6.0.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:01 +09:00
Vincent Povirk b99c35c0e8 mscoree/tests: Check if the runtime is usable before loading it.
Unfortunately, Mono calls exit(1) if it can't load its class libraries,
which is the way Wine fails on x86_64, meaning we have to spawn another
process to check if the runtime works.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 19:38:36 +09:00
Francois Gouget fb863bc8ac mscoree/tests: Add a trailing '\n' to a win_skip() call.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:11 +09:00
Charles Davis fdeaf812e2 mscoree: Implement ICorRuntimeHost::CreateDomain{, Ex}().
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 21:05:48 +09:00
Charles Davis c129cdf145 mscoree: Improve RuntimeHost_Invoke()'s error output a bit.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:03:13 +09:00
Paul Gofman 98d5c4a90f mscoree: Call native DllEntryPoint when it is defined in COR header.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-04 14:41:00 +09:00
Paul Gofman 5dea748c5b mscoree: Add FixupVTable_Assembly function which takes preloaded assembly headers.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-04 14:40:49 +09:00
Paul Gofman 43c43179cd mscoree: Implement VTable fixup for x86_64 architecture.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 14:50:57 +09:00
Paul Gofman 9236a668e6 mscoree: Make vtable and tokens local declarations arch independent.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 14:49:05 +09:00
Paul Gofman b9a0fe18e3 mscoree: Fix calling convention for mono callback functions.
ms_abi calling convention is required for x86_64 arch.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-21 17:01:45 +09:00
Vincent Povirk 26c9bd9f15 mscoree: Remove "Install Mono for Windows" message.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 03:11:25 +09:00
Vincent Povirk f34be7c690 mscoree: Remove search fallbacks when Wine Mono isn't installed.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 03:11:21 +09:00
Andrew Eikum 4d44363e60 mscoree: Set config path for default app domain.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 15:48:39 +09:00
Vincent Povirk 2ecd3772e3 mscoree: Send Mono's debug output to Unix stderr. 2015-09-07 15:03:49 +09:00
Vincent Povirk 6df7366e4e mscoree: Don't modify the PATH environment variable.
Wine Mono 4.5.4 eliminated the need for this.
2015-09-04 15:10:12 +09:00
Vincent Povirk 5cd6db0349 mscoree: Remove the runtime version selection logic and just use 4.0.
Mono has removed support for the .NET 2.0 profile, so we'll have to be
using 4.0 for everything next time we want to update.
2015-03-26 14:21:33 +09:00
Michael Stefaniuc 60d54eee93 mscoree: Use SUCCEEDED instead of !FAILED. 2015-03-24 18:16:00 +09:00
Francois Gouget b861aed2c1 mscoree: Mark internal symbols with hidden visibility. 2015-03-20 18:05:17 +09:00
Vincent Povirk 129ff974b4 mscoree: Update Wine Mono to 4.5.6. 2015-03-03 23:50:33 +09:00
Vincent Povirk 35c7ac8a0b mscoree: Update Wine Mono to 4.5.4. 2014-11-18 14:10:53 +09:00
Vincent Povirk 6ef156e656 mscoree: Use mono_runtime_quit in shutdown process. 2014-10-16 12:59:46 +09:00
Nikolay Sivov a99d8cb21b mscoree: Use E_NOT_SUFFICIENT_BUFFER definition. 2014-10-16 12:58:52 +09:00
Vincent Povirk 4aa1af9016 mscoree: Implement CorBindToCurrentRuntime. 2014-09-10 12:29:21 +02:00
Vincent Povirk 1986e496c7 mscoree: Factor out common code for calling .NET methods. 2014-08-18 21:33:05 +02:00
Vincent Povirk 88dfdded62 mscoree: Implement corruntimehost_CreateDomainSetup. 2014-08-18 21:33:02 +02:00
Vincent Povirk fb2f1f2b64 mscoree: Implement corruntimehost_Start. 2014-08-15 17:04:58 +02:00
Vincent Povirk 805da6bf83 mscoree: Accept "v4.0" as a runtime version in config files. 2014-07-15 10:23:46 +02:00
Frédéric Delanoy 77c191786a mscoree/tests: Use BOOL type where appropriate. 2014-02-19 11:37:07 +01:00
Frédéric Delanoy 8cdcf47001 mscoree: Use BOOL type where appropriate. 2014-02-19 11:37:02 +01:00
Vincent Povirk dad9dc941f mscoree/tests: Fix failures when .NET 4 but not 1 or 2 is installed. 2014-02-06 17:08:11 +01:00
Frédéric Delanoy cb71d30c36 mscoree/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-29 14:50:50 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard d08ff3ff19 makefiles: Use a single variable for all types of idl files. 2013-12-31 18:15:17 +01:00
Frédéric Delanoy 3c6a4fe554 mscoree: Constify a character string. 2013-12-17 08:45:40 +01:00
Vincent Povirk 608b1e1414 mscoree: Update Wine Mono to 4.5.2. 2013-12-05 15:59:03 +01:00
Alistair Leslie-Hughes d8f54b4d49 mscoree: Implement IMetahostPolicy GetRequestedRuntime. 2013-11-22 11:35:57 +01:00
Vincent Povirk 3a2e88534e mscoree: Fix runtime shutdown code. 2013-11-21 13:31:20 +01:00
Alistair Leslie-Hughes a3a19518f4 mscoree: Attempt to load the assembly from the application directory. 2013-11-20 19:38:21 +01:00
André Hentschel dc60ed4596 mscoree/tests: Don't expect a 2.x runtime. 2013-11-13 11:26:09 +01:00
Alexandre Julliard c7803b885b makefiles: Add makedep pragmas for registration idl files. 2013-11-05 20:38:18 +01:00
Alistair Leslie-Hughes 2d899505d7 mscoree: Rename function to match its use. 2013-10-30 11:21:31 +01:00
Alistair Leslie-Hughes 45109f45df mscoree: Display the privatePath when parsing the .config file. 2013-10-30 10:16:10 +01:00
Francois Gouget fbe912d73b mscoree: RuntimeHost_Destroy() is not used anymore so remove it. 2013-10-28 10:42:00 +01:00
Frédéric Delanoy 38adec4ac5 mscoree: Use BOOL type where appropriate. 2013-10-25 13:36:01 +02:00
Vincent Povirk 5e81bad239 mscoree: Call Mono's System.Environment.Exit instead of duplicating it. 2013-10-25 13:35:36 +02:00
Vincent Povirk 770918a91b mscoree: Do a "normal" runtime shutdown from _CorExeMain.
This needs to work differently from CorExitProcess because we need to wait for
foreground threads and abort the rest.
2013-10-25 13:34:47 +02:00
Vincent Povirk 6b889fe918 mscoree: Remove support for multiple Mono ABI versions.
Having two instances of Mono loaded at once is problematic, and now that we
use the 2.0 runtime to support 1.x there's no need to support old versions.
2013-10-25 13:34:26 +02:00