shell32: Mask out the CSIDL_ flags.
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 @@
 
     /* The virtual folders' locations are not user-dependent */
     *ppidl = NULL;
-    switch (nFolder)
+    switch (nFolder & CSIDL_FOLDER_MASK)
     {
         case CSIDL_DESKTOP:
             *ppidl = _ILCreateDesktop();