summaryrefslogtreecommitdiff
path: root/win32/registry.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-01-03 01:22:58 -0800
committerStanislav Malyshev <stas@php.net>2015-01-10 15:07:38 -0800
commitb7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc (patch)
tree0e09490075ee4f9a75a77ef4168d8ee254c52e5b /win32/registry.c
parent773c8b0c092a0e9ad5c5548815bcb9991d54d5c1 (diff)
downloadphp-git-b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc.tar.gz
trailing whitespace removal
Diffstat (limited to 'win32/registry.c')
-rw-r--r--win32/registry.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/registry.c b/win32/registry.c
index da21c7d942..272246420b 100644
--- a/win32/registry.c
+++ b/win32/registry.c
@@ -37,10 +37,10 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
main_key_len = strlen(*key_name);
reg_key = emalloc(main_key_len + sub_key_len + 1);
memcpy(reg_key, *key_name, main_key_len);
- memcpy(reg_key + main_key_len, sub_key, sub_key_len + 1);
+ memcpy(reg_key + main_key_len, sub_key, sub_key_len + 1);
ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, reg_key, 0, KEY_READ, hKey);
efree(reg_key);
-
+
if (ret == ERROR_SUCCESS) {
return 1;
}
@@ -64,7 +64,7 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
HashTable *ht = NULL;
if (RegQueryInfoKey(key, NULL, NULL, NULL, &keys, &max_key, NULL, &values, &max_name, &max_value, NULL, NULL) == ERROR_SUCCESS) {
-
+
if (values) {
DWORD i;
char *name = (char*)emalloc(max_name+1);
@@ -96,7 +96,7 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
ZEND_HASH_FOREACH_KEY_VAL(parent_ht, num, index, tmpdata) {
zend_hash_add(ht, index, tmpdata);
- } ZEND_HASH_FOREACH_END();
+ } ZEND_HASH_FOREACH_END();
}
zend_hash_str_update_mem(directories, path, path_len + 1, &ht, sizeof(HashTable*));
ret = 1;
@@ -244,7 +244,7 @@ void UpdateIniFromRegistry(char *path)
ZEND_HASH_FOREACH_KEY_VAL(ht, num, index, data) {
zend_alter_ini_entry(index, Z_STR_P(data), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
- } ZEND_HASH_FOREACH_END();
+ } ZEND_HASH_FOREACH_END();
/*
for (zend_hash_internal_pointer_reset_ex(ht, &pos);
zend_hash_get_current_data_ex(ht, (void**)&data, &pos) == SUCCESS &&
@@ -273,7 +273,7 @@ char *GetIniPathFromRegistry()
{
char *reg_location = NULL;
HKEY hKey;
-
+
if (OpenPhpRegistryKey(NULL, &hKey)) {
DWORD buflen = MAXPATHLEN;
reg_location = emalloc(MAXPATHLEN+1);