Module: wine Branch: master Commit: a0126ec1ca145fa649afb66ef5bb3ccc9e3d665d URL: http://source.winehq.org/git/wine.git/?a=commit;h=a0126ec1ca145fa649afb66ef5...
Author: Huw Davies huw@codeweavers.com Date: Fri Mar 5 13:49:51 2010 +0000
shell32: Mask out the CSIDL_ flags.
---
dlls/shell32/shellpath.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 2a4e17c..451d6ff 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -2417,7 +2417,7 @@ HRESULT WINAPI SHGetFolderLocation(
/* The virtual folders' locations are not user-dependent */ *ppidl = NULL; - switch (nFolder) + switch (nFolder & CSIDL_FOLDER_MASK) { case CSIDL_DESKTOP: *ppidl = _ILCreateDesktop();