mmdevapi: Don't free resources on PROCESS_DETACH.

This commit is contained in:
Andrew Eikum 2013-03-25 14:46:38 -05:00 committed by Alexandre Julliard
parent 4521044758
commit 1d3aac50a6

View file

@ -176,6 +176,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
DisableThreadLibraryCalls(hinstDLL);
break;
case DLL_PROCESS_DETACH:
if(lpvReserved)
break;
MMDevEnum_Free();
break;
}