shell32: Mask out the CSIDL_ flags.

This commit is contained in:
Huw Davies 2010-03-05 13:49:51 +00:00 committed by Alexandre Julliard
parent c6b6082d16
commit a0126ec1ca

View file

@ -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();