summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/registry.c b/win32/registry.c
index cdeb85f21d..d5f84af595 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -102,7 +102,7 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
zend_hash_get_current_key_ex(parent_ht, &index, &index_len, &num, 0, &pos) == HASH_KEY_IS_STRING;
zend_hash_move_forward_ex(parent_ht, &pos)) {
if (zend_hash_add(ht, index, index_len, data, sizeof(zval*), NULL) == SUCCESS) {
- (*data)->refcount++;
+ Z_ADDREF_PP(data);
}
}
}