Commit 3ace5e53 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

inetcomm: Call InternetTransport_RegisterClass and UnregisterClass on process…

inetcomm: Call InternetTransport_RegisterClass and UnregisterClass on process attach and detach respectively, to register a window class and initialize Winsock.
parent cef74e26
......@@ -18,12 +18,16 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include <stdarg.h>
#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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment