Commit dc345305 authored by Alexandre Julliard's avatar Alexandre Julliard

sane.ds: Don't unload external libraries on process shutdown.

parent 21bfa081
...@@ -102,14 +102,12 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -102,14 +102,12 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break; break;
} }
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (lpvReserved) break;
#ifdef SONAME_LIBSANE #ifdef SONAME_LIBSANE
TRACE("calling sane_exit()\n"); TRACE("calling sane_exit()\n");
psane_exit (); psane_exit ();
close_libsane(libsane_handle); close_libsane(libsane_handle);
libsane_handle = NULL; #endif
#endif
SANE_instance = NULL;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment