Skip to content
Snippets Groups Projects
Commit d7326ca7 authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard
Browse files

shell32: Return a GUID pidl for CSIDL_PERSONAL in SHGetFolderLocation.

The tests (shellpath.c/testPersonal) already show that it can be either 
PT_FOLDER or PT_GUID. It's PT_GUID on WinXP.
parent 4642e1e4
No related branches found
No related tags found
No related merge requests found
......@@ -1380,6 +1380,12 @@ LPITEMIDLIST _ILCreateMyComputer()
return _ILCreateGuid(PT_GUID, &CLSID_MyComputer);
}
LPITEMIDLIST _ILCreateMyDocuments()
{
TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_MyDocuments);
}
LPITEMIDLIST _ILCreateIExplore()
{
TRACE("()\n");
......
......@@ -240,6 +240,7 @@ HRESULT _ILCreateFromPathW (LPCWSTR szPath, LPITEMIDLIST* ppidl);
/* Other helpers */
LPITEMIDLIST _ILCreateMyComputer (void);
LPITEMIDLIST _ILCreateMyDocuments (void);
LPITEMIDLIST _ILCreateIExplore (void);
LPITEMIDLIST _ILCreateControlPanel (void);
LPITEMIDLIST _ILCreatePrinters (void);
......
......@@ -2223,6 +2223,10 @@ HRESULT WINAPI SHGetFolderLocation(
*ppidl = _ILCreateDesktop();
break;
case CSIDL_PERSONAL:
*ppidl = _ILCreateMyDocuments();
break;
case CSIDL_INTERNET:
*ppidl = _ILCreateIExplore();
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment