summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2005-03-14 12:42:05 +0000
committerZeev Suraski <zeev@php.net>2005-03-14 12:42:05 +0000
commit6e6a1f0e69e6e3c1bb91a4cc41ae7b62eac1f36b (patch)
treec34b9caee7d6b74e23e5396ac75b25edcb78b969 /win32
parent5a4c0afe3135325fc7a0680556c928417052e9e4 (diff)
downloadphp-git-6e6a1f0e69e6e3c1bb91a4cc41ae7b62eac1f36b.tar.gz
Merge registry fix
Diffstat (limited to 'win32')
-rw-r--r--win32/registry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/registry.c b/win32/registry.c
index 6eda0f9fff..95d142cfa8 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -38,6 +38,9 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
drive_letter = tmp_buf[0];
cwd++;
}
+ while (*cwd == '\\' || *cwd == '/') {
+ cwd++;
+ }
path = (char *) emalloc(2+strlen(cwd)+1+strlen(orig_path)+1);
sprintf(path, "%c\\%s\\%s", drive_letter, cwd, orig_path);
efree(orig_path);