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

This commit is contained in:
Alexandre Julliard 2013-04-30 17:25:29 +02:00
parent 21bfa0812e
commit dc345305b0
1 changed files with 2 additions and 4 deletions

View File

@ -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;
} }