mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix error code upcast on x64
This commit is contained in:
parent
26e7e54e78
commit
e2951a191e
1 changed files with 4 additions and 0 deletions
|
@ -36,7 +36,11 @@ void php_com_throw_exception(HRESULT code, char *message TSRMLS_DC)
|
|||
message = php_win32_error_to_msg(code);
|
||||
free_msg = 1;
|
||||
}
|
||||
#if SIZEOF_ZEND_LONG == 8
|
||||
zend_throw_exception(php_com_exception_class_entry, message, (zend_long)(uint32_t)code TSRMLS_CC);
|
||||
#else
|
||||
zend_throw_exception(php_com_exception_class_entry, message, (zend_long)code TSRMLS_CC);
|
||||
#endif
|
||||
if (free_msg) {
|
||||
LocalFree(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue