cvs: pecl /iisfunc iisfunc.cpp setup.c
| From: | Frank M. Kromann | Date: | Mon, 11 Dec 2006 06:55:02 +0000 |
| Subject: | cvs: pecl /iisfunc iisfunc.cpp setup.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6786@lists.php.net to get a copy of this message | ||
fmk Mon Dec 11 06:55:02 2006 UTC
Modified files:
/pecl/iisfunc iisfunc.cpp setup.c
Log:
Add missing CoInitialize() and CoUninitialize() calls
http://cvs.php.net/viewvc.cgi/pecl/iisfunc/iisfunc.cpp?r1=1.25&r2=1.26&diff_format=u
Index: pecl/iisfunc/iisfunc.cpp
diff -u pecl/iisfunc/iisfunc.cpp:1.25 pecl/iisfunc/iisfunc.cpp:1.26
--- pecl/iisfunc/iisfunc.cpp:1.25 Mon Aug 23 17:48:30 2004
+++ pecl/iisfunc/iisfunc.cpp Mon Dec 11 06:55:01 2006
@@ -15,7 +15,7 @@
| Authors: Frank M. Kromann <fmk@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: iisfunc.cpp,v 1.25 2004/08/23 17:48:30 fmk Exp $ */
+/* $Id: iisfunc.cpp,v 1.26 2006/12/11 06:55:01 fmk Exp $ */
/*
iisfunc.cpp : Defines the entry point for the DLL application.
*/
@@ -60,12 +60,14 @@
extern "C" void fnIisInit(LPVOID *pIMeta)
{
- CoCreateInstance(CLSID_MSAdminBase, NULL, CLSCTX_ALL, IID_IMSAdminBase, pIMeta);
+ CoInitialize(NULL);
+ HRESULT hres = CoCreateInstance(CLSID_MSAdminBase, NULL, CLSCTX_ALL, IID_IMSAdminBase, pIMeta);
}
-extern "C" void fnIisShutdown(LPVOID pIMeta)
+extern "C" void fnIisShutdown(LPVOID *pIMeta)
{
-// ((IMSAdminBase *)pIMeta)->Release();
+ ((IMSAdminBase *)pIMeta)->Release();
+ CoUninitialize();
}
extern "C" int fnIisEnumServers(zval *ServerList TSRMLS_DC)
http://cvs.php.net/viewvc.cgi/pecl/iisfunc/setup.c?r1=1.29&r2=1.30&diff_format=u
Index: pecl/iisfunc/setup.c
diff -u pecl/iisfunc/setup.c:1.29 pecl/iisfunc/setup.c:1.30
--- pecl/iisfunc/setup.c:1.29 Wed Dec 6 00:28:36 2006
+++ pecl/iisfunc/setup.c Mon Dec 11 06:55:01 2006
@@ -15,7 +15,7 @@
| Authors: Frank M. Kromann <fmk@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: setup.c,v 1.29 2006/12/06 00:28:36 fmk Exp $ */
+/* $Id: setup.c,v 1.30 2006/12/11 06:55:01 fmk Exp $ */
#ifdef COMPILE_DL_IISFUNC
#define HAVE_IISFUNC 1
@@ -157,6 +157,11 @@
PHP_MSHUTDOWN_FUNCTION(iisfunc)
{
+#ifdef ZTS
+ ts_free_id(iisfunc_globals_id);
+#else
+ php_printer_shutdown(&iisfunc_globals TSRMLS_CC);
+#endif
return SUCCESS;
}