Skip to content

Commit 7a8774a

Browse files
committed
better way to get ACP
1 parent 3473b51 commit 7a8774a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/com_dotnet/com_com.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PHP_FUNCTION(com_create_instance)
5252
RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE,
5353
&authid, EOAC_NONE
5454
};
55-
zend_long cp = CP_ACP;
55+
zend_long cp = GetACP();
5656

5757
php_com_initialize();
5858
obj = CDNO_FETCH(object);

ext/com_dotnet/com_dotnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ PHP_FUNCTION(com_dotnet_create_instance)
196196
int ret = FAILURE;
197197
char *where = "";
198198
IUnknown *unk = NULL;
199-
zend_long cp = CP_ACP;
199+
zend_long cp = GetACP();
200200

201201
php_com_initialize();
202202
stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff);

0 commit comments

Comments
 (0)