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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to