--- embedaddon/php/ext/com_dotnet/com_dotnet.c 2012/02/21 23:47:53 1.1.1.1 +++ embedaddon/php/ext/com_dotnet/com_dotnet.c 2012/05/29 12:34:36 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: com_dotnet.c,v 1.1.1.1 2012/02/21 23:47:53 misho Exp $ */ +/* $Id: com_dotnet.c,v 1.1.1.2 2012/05/29 12:34:36 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -202,7 +202,7 @@ PHP_FUNCTION(com_dotnet_create_instance) hr = dotnet_init(&where TSRMLS_CC); if (FAILED(hr)) { char buf[1024]; - char *err = php_win_err(hr); + char *err = php_win32_error_to_msg(hr); snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); if (err) LocalFree(err); @@ -281,7 +281,7 @@ PHP_FUNCTION(com_dotnet_create_instance) if (ret == FAILURE) { char buf[1024]; - char *err = php_win_err(hr); + char *err = php_win32_error_to_msg(hr); snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); if (err && err[0]) { LocalFree(err);