diff options
Diffstat (limited to 'winsup/cygwin/registry.cc')
-rw-r--r-- | winsup/cygwin/registry.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/registry.cc b/winsup/cygwin/registry.cc index af543ba67..ebe6bb3c6 100644 --- a/winsup/cygwin/registry.cc +++ b/winsup/cygwin/registry.cc @@ -208,11 +208,11 @@ get_registry_hive_path (const PSID psid, char *path) key[0] = '\0'; if (!RegQueryValueExA (hkey, "ProfileImagePath", 0, &type, - (BYTE *)buf, (siz = 256, &siz))) - ExpandEnvironmentStringsA (buf, key, 256); + (BYTE *)buf, (siz = 256, &siz))) + ExpandEnvironmentStringsA (buf, key, 256); RegCloseKey (hkey); if (key[0]) - return strcpy (path, key); + return strcpy (path, key); } return NULL; } @@ -229,7 +229,7 @@ load_registry_hive (PSID psid) return; /* Check if user hive is already loaded. */ if (!RegOpenKeyExA (HKEY_USERS, convert_sid_to_string_sid (psid, sid), - 0, KEY_READ, &hkey)) + 0, KEY_READ, &hkey)) { debug_printf ("User registry hive for %s already exists", sid); RegCloseKey (hkey); @@ -239,7 +239,7 @@ load_registry_hive (PSID psid) { strcat (path, "\\NTUSER.DAT"); if ((ret = RegLoadKeyA (HKEY_USERS, sid, path)) != ERROR_SUCCESS) - debug_printf ("Loading user registry hive for %s failed: %d", sid, ret); + debug_printf ("Loading user registry hive for %s failed: %d", sid, ret); } } |