From c674638dd01b8399c032c59edaab54f55343dcb5 Mon Sep 17 00:00:00 2001 From: Harald Radi Date: Wed, 15 Aug 2001 10:39:59 +0000 Subject: removed CoInitialize() and CoUninitialize() --- ext/dotnet/dotnet.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ext/dotnet/dotnet.cpp') diff --git a/ext/dotnet/dotnet.cpp b/ext/dotnet/dotnet.cpp index 7461dd2a17..24a7b26315 100644 --- a/ext/dotnet/dotnet.cpp +++ b/ext/dotnet/dotnet.cpp @@ -209,9 +209,7 @@ PHP_MINIT_FUNCTION(DOTNET) { HRESULT hr; - CoInitialize(0); - hr = dotnet_init(); - if (FAILED(hr)) { + if (FAILED(hr = dotnet_init())) { return hr; } @@ -223,7 +221,6 @@ PHP_MINIT_FUNCTION(DOTNET) PHP_MSHUTDOWN_FUNCTION(DOTNET) { dotnet_term(); - CoUninitialize(); return SUCCESS; } -- cgit v1.2.1