]> granicus.if.org Git - php/commitdiff
MFH (and build fix)
authorEdin Kadribasic <edink@php.net>
Fri, 12 Oct 2007 07:58:32 +0000 (07:58 +0000)
committerEdin Kadribasic <edink@php.net>
Fri, 12 Oct 2007 07:58:32 +0000 (07:58 +0000)
win32/registry.c

index cdeb85f21d4e311295399fb816d1cd20fd251218..d5f84af59546ef3243ea9e702eb80085d77e9c3b 100644 (file)
@@ -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);
                                                }
                                        }
                                }