1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00

fix compilation

This commit is contained in:
Stanislav Malyshev
2003-10-19 10:36:36 +00:00
parent 3e828db413
commit 405361f7ea
+1 -1
View File
@@ -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;