dmitry Wed May 2 10:16:48 2007 UTC
Modified files:
/php-src/win32 registry.c
Log:
Fixed bug #41192 (Per Directory Values only work for one key)
http://cvs.php.net/viewvc.cgi/php-src/win32/registry.c?r1=1.20&r2=1.21&diff_format=u
Index: php-src/win32/registry.c
diff -u php-src/win32/registry.c:1.20 php-src/win32/registry.c:1.21
--- php-src/win32/registry.c:1.20 Sun Apr 22 10:25:51 2007
+++ php-src/win32/registry.c Wed May 2 10:16:48 2007
@@ -135,11 +135,12 @@
new_path[path_len] =
'/';
memcpy(new_path+path_len+1, name, name_len+1);
zend_str_tolower(new_path, path_len+name_len+1);
+ name_len += path_len+1;
} else {
memcpy(new_path, name,
name_len+1);
zend_str_tolower(new_path, name_len);
}
- if (LoadDirectory(directories,
subkey, new_path, path_len+name_len, ht)) {
+ if (LoadDirectory(directories,
subkey, new_path, name_len, ht)) {
ret = 1;
}
RegCloseKey(subkey);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php