diff --git a/win32/registry.c b/win32/registry.c index 71f1922b5ea..43903929ca6 100644 --- a/win32/registry.c +++ b/win32/registry.c @@ -29,7 +29,7 @@ void UpdateIniFromRegistry(char *path) char drive_letter; /* get current working directory and prepend it to the path */ - if (!getcwd(tmp_buf, MAXPATHLEN)) { + if (!PHP_GETCWD(tmp_buf, MAXPATHLEN)) { efree(orig_path); return; }