Browse Source

better way to get ACP

pull/2180/head
Anatol Belski 10 years ago
parent
commit
7a8774ade4
  1. 2
      ext/com_dotnet/com_com.c
  2. 2
      ext/com_dotnet/com_dotnet.c

2
ext/com_dotnet/com_com.c

@ -52,7 +52,7 @@ PHP_FUNCTION(com_create_instance)
RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE,
&authid, EOAC_NONE
};
zend_long cp = CP_ACP;
zend_long cp = GetACP();
php_com_initialize();
obj = CDNO_FETCH(object);

2
ext/com_dotnet/com_dotnet.c

@ -196,7 +196,7 @@ PHP_FUNCTION(com_dotnet_create_instance)
int ret = FAILURE;
char *where = "";
IUnknown *unk = NULL;
zend_long cp = CP_ACP;
zend_long cp = GetACP();
php_com_initialize();
stuff = (struct dotnet_runtime_stuff*)COMG(dotnet_runtime_stuff);

Loading…
Cancel
Save