From 3ace5e53d9dfbeed459717d06b99d108149c826d Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 2 Nov 2007 11:43:29 +0000 Subject: [PATCH] inetcomm: Call InternetTransport_RegisterClass and UnregisterClass on process attach and detach respectively, to register a window class and initialize Winsock. --- dlls/inetcomm/inetcomm_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/inetcomm/inetcomm_main.c b/dlls/inetcomm/inetcomm_main.c index 47c3b8dc7ca..952efcbb31e 100644 --- a/dlls/inetcomm/inetcomm_main.c +++ b/dlls/inetcomm/inetcomm_main.c @@ -18,12 +18,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#define COBJMACROS + #include #include "windef.h" #include "winbase.h" #include "winnt.h" +#include "inetcomm_private.h" + #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(inetcomm); @@ -38,8 +42,11 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) return FALSE; case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); + if (!InternetTransport_RegisterClass(hinstDLL)) + return FALSE; break; case DLL_PROCESS_DETACH: + InternetTransport_UnregisterClass(hinstDLL); break; default: break;