cvs: php-src /win32 registry.c
| From: | Stanislav Malyshev | Date: | Sun, 19 Oct 2003 10:36:36 +0000 |
| Subject: | cvs: php-src /win32 registry.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24168@lists.php.net to get a copy of this message | ||
stas Sun Oct 19 06:36:36 2003 EDT
Modified files:
/php-src/win32 registry.c
Log:
fix compilation
Index: php-src/win32/registry.c
diff -u php-src/win32/registry.c:1.13 php-src/win32/registry.c:1.14
--- php-src/win32/registry.c:1.13 Sun Oct 19 06:22:21 2003
+++ php-src/win32/registry.c Sun Oct 19 06:36:36 2003
@@ -97,8 +97,8 @@
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;