Commit a0126ec1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

shell32: Mask out the CSIDL_ flags.

parent c6b6082d
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment