From: Zeev Suraski Date: Mon, 14 Mar 2005 12:42:05 +0000 (+0000) Subject: Merge registry fix X-Git-Tag: php-5.0.1b1~800 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e6a1f0e69e6e3c1bb91a4cc41ae7b62eac1f36b;p=php Merge registry fix --- 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);