fix datatype mismatches

This commit is contained in:
Anatol Belski 2014-10-27 19:23:03 +01:00
parent 77ab77fd02
commit 1770ae641b

View file

@ -27,8 +27,8 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
const char **key_name = registry_keys; const char **key_name = registry_keys;
if (sub_key) { if (sub_key) {
int main_key_len; size_t main_key_len;
int sub_key_len = strlen(sub_key); size_t sub_key_len = strlen(sub_key);
char *reg_key; char *reg_key;
while (*key_name) { while (*key_name) {
@ -235,7 +235,6 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
} }
zend_str_tolower(path, path_len); zend_str_tolower(path, path_len);
while (path_len >= 0) { while (path_len >= 0) {
ZEND_API zval *zend_hash_str_find(const HashTable *ht, const char *key, int len);
pht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len+1); pht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len+1);
if (pht != NULL) { if (pht != NULL) {
HashTable *ht = pht; HashTable *ht = pht;