diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-12-02 10:49:47 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-12-02 10:49:47 +0000 |
commit | 41f77e25f11d2b152d2f4da12d1e6378c64fc78e (patch) | |
tree | bd51f7bf99de9278c427694a609c2a9e45cf3faa /winsup/cygwin/autoload.cc | |
parent | 195a9205e5c8d6ddded25c7dca736105ed9a1e86 (diff) | |
download | cygnal-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.tar.gz cygnal-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.tar.bz2 cygnal-41f77e25f11d2b152d2f4da12d1e6378c64fc78e.zip |
* autoload.cc (CreateProfile): Import.
(LoadUserProfileW): Import.
* registry.cc (get_registry_hive_path): Move to sec_auth.cc.
(load_registry_hive): Remove.
* registry.h (get_registry_hive_path): Drop declaration.
(load_registry_hive): Ditto.
* sec_auth.cc (get_user_profile_directory): Moved from registry.cc and
renamed. Take third parameter with buffer length.
(load_user_profile): New function taking over for load_registry_hive.
Use official functions to load profile. If profile is missing, create
it on Vista and later.
* security.h (get_user_profile_directory): Declare.
(load_user_profile): Declare.
* syscalls.cc (seteuid32): Replace call to load_registry_hive with call
to load_user_profile.
* uinfo.cc (cygheap_user::env_userprofile): Replace call to
get_registry_hive_path with call to get_user_profile_directory.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 7859725ff..ce5d32834 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -676,7 +676,9 @@ LoadDLLfunc (SetProcessWindowStation, 4, user32) LoadDLLfunc (SetThreadDesktop, 4, user32) LoadDLLfunc (CreateEnvironmentBlock, 12, userenv) +LoadDLLfuncEx2 (CreateProfile, 16, userenv, 1, 1) LoadDLLfunc (DestroyEnvironmentBlock, 4, userenv) +LoadDLLfunc (LoadUserProfileW, 8, userenv) LoadDLLfuncEx3 (waveInAddBuffer, 12, winmm, 1, 0, 1) LoadDLLfuncEx3 (waveInClose, 4, winmm, 1, 0, 1) |