diff options
author | Stanislav Malyshev <stas@php.net> | 2003-10-19 10:36:36 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2003-10-19 10:36:36 +0000 |
commit | 405361f7ea5c5d95d3dc396b65a49a994c74726c (patch) | |
tree | 1dc9aa8435512c325df96adf570b49deeea92d59 | |
parent | 3e828db413a1488a3ac50467d80a022542b932f7 (diff) | |
download | php-git-405361f7ea5c5d95d3dc396b65a49a994c74726c.tar.gz |
fix compilation
-rw-r--r-- | win32/registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/registry.c b/win32/registry.c index c2f4666587..c9a324b628 100644 --- a/win32/registry.c +++ b/win32/registry.c @@ -97,8 +97,8 @@ char *GetIniPathFromRegistry() HKEY hKey; if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, PHP_REGISTRY_KEY, 0, KEY_READ, &hKey) == ERROR_SUCCESS) { - reg_location = emalloc(MAXPATHLEN+1); DWORD buflen = MAXPATHLEN; + reg_location = emalloc(MAXPATHLEN+1); if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) { efree(reg_location); reg_location = NULL; |