diff options
Diffstat (limited to 'ext/rpc/dotnet/dotnet.cpp')
-rw-r--r-- | ext/rpc/dotnet/dotnet.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/rpc/dotnet/dotnet.cpp b/ext/rpc/dotnet/dotnet.cpp index 7461dd2a17..24a7b26315 100644 --- a/ext/rpc/dotnet/dotnet.cpp +++ b/ext/rpc/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; } |