[PATCH 0/1] MR3615: ntdll: don't terminate process when load_main_exe can't load file.
Currently, wine is unable to find and execute URIs (such as Link2EA://someurlhere), with this patch wine is able to fall back to using start.exe instead of terminating the process. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3615
From: Etaash Mathamsetty <etaash.mathamsetty(a)gmail.com> --- dlls/ntdll/unix/loader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 8d5fc79895c..01e2aa497a6 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1799,8 +1799,7 @@ NTSTATUS load_main_exe( const WCHAR *dos_name, const char *unix_name, const WCHA failed: MESSAGE( "wine: failed to open %s: %x\n", unix_name ? debugstr_a(unix_name) : debugstr_w(dos_name), status ); - NtTerminateProcess( GetCurrentProcess(), status ); - return status; /* unreached */ + return status; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3615
This merge request was closed by Alexandre Julliard. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3615
That doesn't seem desirable. You can't run a URI directly on Windows either, you have to use start.exe explicitly. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3615#note_42844
On Mon Aug 21 16:09:24 2023 +0000, Alexandre Julliard wrote:
That doesn't seem desirable. You can't run a URI directly on Windows either, you have to use start.exe explicitly. ok makes sense, I guess legendary is not executing the URI correctly. I will send a patch there I guess.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3615#note_42880
participants (3)
-
Alexandre Julliard (@julliard) -
Etaash Mathamsetty -
Etaash Mathamsetty (@etaash.mathamsetty)