From c78bc820f66d0109b18f1fd82d7a710de3a40bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 17 Feb 2015 15:08:54 +0000 Subject: [PATCH] [WS2_32] - Do not free resources at process termination. - Free the provider catalog after the handle table, since the latter references the former. svn path=/trunk/; revision=66337 --- reactos/dll/win32/ws2_32/misc/dllmain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/ws2_32/misc/dllmain.c b/reactos/dll/win32/ws2_32/misc/dllmain.c index e86e4f10db3..441ed6e1f35 100644 --- a/reactos/dll/win32/ws2_32/misc/dllmain.c +++ b/reactos/dll/win32/ws2_32/misc/dllmain.c @@ -887,9 +887,11 @@ DllMain(HANDLE hInstDll, case DLL_PROCESS_DETACH: { - DestroyCatalog(); - - FreeProviderHandleTable(); + if (!lpReserved) + { + FreeProviderHandleTable(); + DestroyCatalog(); + } } break;