inetcomm: Call InternetTransport_RegisterClass and UnregisterClass on process attach and detach respectively, to register a window class and initialize Winsock.

This commit is contained in:
Rob Shearman 2007-11-02 11:43:29 +00:00 committed by Alexandre Julliard
parent cef74e263f
commit 3ace5e53d9
1 changed files with 7 additions and 0 deletions

View File

@ -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;