wez             Tue Aug  3 08:41:26 2004 EDT

  Modified files:              
    /php-src/ext/com_dotnet     com_dotnet.c 
  Log:
  Even more verbosity...
  
  
http://cvs.php.net/diff.php/php-src/ext/com_dotnet/com_dotnet.c?r1=1.9&r2=1.10&ty=u
Index: php-src/ext/com_dotnet/com_dotnet.c
diff -u php-src/ext/com_dotnet/com_dotnet.c:1.9 
php-src/ext/com_dotnet/com_dotnet.c:1.10
--- php-src/ext/com_dotnet/com_dotnet.c:1.9     Tue Aug  3 05:44:04 2004
+++ php-src/ext/com_dotnet/com_dotnet.c Tue Aug  3 08:41:26 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: com_dotnet.c,v 1.9 2004/08/03 09:44:04 wez Exp $ */
+/* $Id: com_dotnet.c,v 1.10 2004/08/03 12:41:26 wez Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -179,7 +179,10 @@
 
        if (ret == FAILURE) {
                char buf[1024];
-               sprintf(buf, "Failed to instantiate .Net object [%s]", where);
+               char *err = php_win_err(hr);
+               snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] 
%s", where, err);
+               if (err)
+                       LocalFree(err);
                php_com_throw_exception(hr, buf TSRMLS_CC);
                ZVAL_NULL(object);
                return;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to