Skip to content

Commit 1770ae6

Browse files
committedOct 28, 2014
fix datatype mismatches
1 parent 77ab77f commit 1770ae6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎win32/registry.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
2727
const char **key_name = registry_keys;
2828

2929
if (sub_key) {
30-
int main_key_len;
31-
int sub_key_len = strlen(sub_key);
30+
size_t main_key_len;
31+
size_t sub_key_len = strlen(sub_key);
3232
char *reg_key;
3333

3434
while (*key_name) {
@@ -235,7 +235,6 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
235235
}
236236
zend_str_tolower(path, path_len);
237237
while (path_len >= 0) {
238-
ZEND_API zval *zend_hash_str_find(const HashTable *ht, const char *key, int len);
239238
pht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len+1);
240239
if (pht != NULL) {
241240
HashTable *ht = pht;

0 commit comments

Comments
 (0)
Failed to load comments.