From a0126ec1ca145fa649afb66ef5bb3ccc9e3d665d Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 5 Mar 2010 13:49:51 +0000 Subject: [PATCH] shell32: Mask out the CSIDL_ flags. --- dlls/shell32/shellpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 2a4e17c1f6c..451d6fff345 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();