[PATCH] ntdll: Init retv to FALSE so in case of exception the trace shows the failure.

Christian Costa titan.costa at gmail.com
Sat Sep 29 15:29:11 CDT 2012


Indeed in case of exception retv is not updated and the trace shows that entry point returned with success.
---
 dlls/ntdll/loader.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index b0b580b..c4b1ed6 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -994,7 +994,7 @@ static NTSTATUS MODULE_InitDLL( WINE_MODREF *wm, UINT reason, LPVOID lpReserved
     NTSTATUS status = STATUS_SUCCESS;
     DLLENTRYPROC entry = wm->ldr.EntryPoint;
     void *module = wm->ldr.BaseAddress;
-    BOOL retv = TRUE;
+    BOOL retv = FALSE;
 
     /* Skip calls for modules loaded with special load flags */
 




More information about the wine-patches mailing list