Sebastian Lackner : ntdll: Execute queued APCs before starting a process.

Alexandre Julliard julliard at winehq.org
Mon Sep 23 15:22:33 CDT 2019


Module: wine
Branch: master
Commit: b45d6125493e19e7e2befe071b7052bad4d2859f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b45d6125493e19e7e2befe071b7052bad4d2859f

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Thu Sep 19 18:36:04 2019 -0500

ntdll: Execute queued APCs before starting a process.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=35561
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/loader.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 376a8345f4..0ab25dcc51 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -3540,6 +3540,7 @@ PIMAGE_NT_HEADERS WINAPI RtlImageNtHeader(HMODULE hModule)
  */
 void WINAPI LdrInitializeThunk( CONTEXT *context, void **entry, ULONG_PTR unknown3, ULONG_PTR unknown4 )
 {
+    static const LARGE_INTEGER zero;
     NTSTATUS status;
     WINE_MODREF *wm;
     LPCWSTR load_path = NtCurrentTeb()->Peb->ProcessParameters->DllPath.Buffer;
@@ -3602,6 +3603,8 @@ void WINAPI LdrInitializeThunk( CONTEXT *context, void **entry, ULONG_PTR unknow
     }
 
     RtlLeaveCriticalSection( &loader_section );
+
+    NtDelayExecution( TRUE, &zero );
 }
 
 




More information about the wine-cvs mailing list