From e4a20a4bb9894e5fb497ff7f65bc574a02abbc4a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 3 Sep 2005 09:38:22 +0000 Subject: [PATCH] There's no way to properly unload a driver, so don't try. --- dlls/winecrt0/drv_entry.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/winecrt0/drv_entry.c b/dlls/winecrt0/drv_entry.c index 7beb8f55aa8..47c20c7e1e0 100644 --- a/dlls/winecrt0/drv_entry.c +++ b/dlls/winecrt0/drv_entry.c @@ -20,7 +20,6 @@ #include #include "windef.h" -#include "winbase.h" #include "winternl.h" #include "wine/library.h" #include "crt0_private.h" @@ -31,10 +30,8 @@ extern NTSTATUS DriverEntry( struct _DRIVER_OBJECT *obj, UNICODE_STRING *path ); NTSTATUS __wine_spec_drv_entry( struct _DRIVER_OBJECT *obj, UNICODE_STRING *path ) { BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); - NTSTATUS ret; if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); - ret = DriverEntry( obj, path ); - if (needs_init) _fini(); - ExitProcess( ret ); + return DriverEntry( obj, path ); + /* there is no detach routine so we can't call destructors */ }