mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
removed CoInitialize() and CoUninitialize()
This commit is contained in:
parent
8300abe367
commit
c674638dd0
4 changed files with 16 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue