summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_com.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-07-20 14:45:42 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-07-20 14:45:42 +0200
commit05e9197c517baf740cf8228da3c123ca21cc8e4d (patch)
treed75c1665e94054e865ed70e78db2e51ed0f40ded /ext/com_dotnet/com_com.c
parentd67adc39a089ebd7411dcaa109f12651114e06ba (diff)
parent4b96a75ffd14f692117854c086ca1c748dbf8e5e (diff)
downloadphp-git-05e9197c517baf740cf8228da3c123ca21cc8e4d.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #63527: DCOM does not work with Username, Password parameter
Diffstat (limited to 'ext/com_dotnet/com_com.c')
-rw-r--r--ext/com_dotnet/com_com.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index 315e091ca3..979c1e9084 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -129,7 +129,7 @@ PHP_METHOD(com, __construct)
info.pwszName = php_com_string_to_olestring(server_name, server_name_len, obj->code_page);
if (user_name) {
- authid.User = php_com_string_to_olestring(user_name, -1, obj->code_page);
+ authid.User = (OLECHAR*)user_name;
authid.UserLength = (ULONG)user_name_len;
if (password) {