New helper function on Win32, returns the root of the drive (or possibly
authorTor Lillqvist <tml@novell.com>
Wed, 8 Jun 2005 20:03:12 +0000 (20:03 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 8 Jun 2005 20:03:12 +0000 (20:03 +0000)
commitb8d34f660970f882e89bb45c3f6d0a8e2631ff05
tree006f4376a23e303ea9ed4473e9150b6ee9098bc1
parent9eec791d98aaaed286e8cec299d3ae84c76d9da1
New helper function on Win32, returns the root of the drive (or possibly

2005-06-08  Tor Lillqvist  <tml@novell.com>

* glib/gutils.c (get_windows_directory_root): New helper function
on Win32, returns the root of the drive (or possibly share) where
the Windows directory is. (In the case of Terminal Server sessions
the Windows directory is a per-user folder.)
(g_get_any_init): Use get_windows_directory_root() as last resort
for both temp directory and home directory. g_get_home_dir() now
never returns NULL on Win32. Don't look at HOMEDRIVE and
HOMEPATH. HOME, USERPROFILE, CSIDL_PROFILE and Windows directory
drive root should be enough.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gutils.c