Fix QDesktopServices::storageLocation() when registry keys are missing
commit722d351de797135273a05ff0f4c63315bf37592d
authorJens Bache-Wiig <jbache@trolltech.com>
Wed, 16 Sep 2009 11:59:20 +0000 (16 13:59 +0200)
committerJens Bache-Wiig <jbache@trolltech.com>
Wed, 16 Sep 2009 12:02:39 +0000 (16 14:02 +0200)
treed2af3a105daf24ff1c29c620b6d143a3ee709492
parent16c4afe4592587a4bc48ae2170da748e0d149a64
Fix QDesktopServices::storageLocation() when registry keys are missing

We should not use the registry key when looking up the storage
location as this is not really supported by Microsoft and not
allways accessible. Instead we now use SHGetSpecialFolderPath.
Note that we avoid SHGetKnownFolderPath as it is not available
on all CE platforms though it is the reccommended function by
Microsoft.

Task-number: QTBUG-3241
Reviewed-by: prasanth
src/gui/util/qdesktopservices_win.cpp