pajoye Thu, 20 Jan 2011 06:44:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307612
Log:
- init err
Changed paths:
U php/php-src/trunk/ext/com_dotnet/com_olechar.c
Modified: php/php-src/trunk/ext/com_dotnet/com_olechar.c
===================================================================
--- php/php-src/trunk/ext/com_dotnet/com_olechar.c 2011-01-20 06:32:59 UTC
(rev 307611)
+++ php/php-src/trunk/ext/com_dotnet/com_olechar.c 2011-01-20 06:44:16 UTC
(rev 307612)
@@ -79,7 +79,6 @@
length = WideCharToMultiByte(codepage, 0, olestring, -1,
string, length, NULL, NULL);
ok = length > 0;
} else {
- err = GetLastError();
string = (char*)emalloc(sizeof(char));
*string = '\0';
ok = FALSE;
@@ -87,7 +86,9 @@
}
if (!ok) {
- char *msg = php_win32_error_to_msg(err);
+ char *msg;
+ err = GetLastError();
+ msg = php_win32_error_to_msg(err);
php_error_docref(NULL TSRMLS_CC, E_WARNING,
"Could not convert string from unicode: `%s'", msg);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php