mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
fix compilation
This commit is contained in:
parent
3e828db413
commit
405361f7ea
1 changed files with 1 additions and 1 deletions
|
@ -97,8 +97,8 @@ char *GetIniPathFromRegistry()
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
|
||||||
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, PHP_REGISTRY_KEY, 0, KEY_READ, &hKey) == ERROR_SUCCESS) {
|
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, PHP_REGISTRY_KEY, 0, KEY_READ, &hKey) == ERROR_SUCCESS) {
|
||||||
reg_location = emalloc(MAXPATHLEN+1);
|
|
||||||
DWORD buflen = MAXPATHLEN;
|
DWORD buflen = MAXPATHLEN;
|
||||||
|
reg_location = emalloc(MAXPATHLEN+1);
|
||||||
if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) {
|
if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) {
|
||||||
efree(reg_location);
|
efree(reg_location);
|
||||||
reg_location = NULL;
|
reg_location = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue