shell32/shellpath: Fall back to defaults in SHGet(All)UserProfilePath (2nd try)

Michael Jung mjung at iss.tu-darmstadt.de
Tue Jan 24 02:25:41 CST 2006


Updated to check if path is actually an absolute DOS path, before checking if 
the drive letter is valid.


If the registry entry for the CSIDL_DESKTOP path is invalid, the Desktop
shellfolder won't initialize, which breaks all of the shell namespace. This
seems to happen quite often, since some people are removing the Z: drive
after the initial wineprefixcreate run (See bug 4322).

With this patch, _SHGet(All)UserProfilePath checks for the path to be
returned to start with a valid drive letter. If this is not the case, it
falls back to the default value.

ChangeLog:
Fall back to default value, if path to be returned by 
_SHGet(All)UserProfilePath starts with an invalid drive letter.

-- 
Michael Jung
mjung at iss.tu-darmstadt.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlls_shell32_shellpath_c.diff
Type: text/x-diff
Size: 1395 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060124/88bd8fc2/dlls_shell32_shellpath_c.diff


More information about the wine-patches mailing list