mmdevapi: Don't free resources on PROCESS_DETACH.
This commit is contained in:
parent
4521044758
commit
1d3aac50a6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue