mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[SHELL32]
- When binding to a drive item try to initialize the new CFSFolder using IPersistFolder3. That allows us to get the path of the drive right from the pidl instead of getting a new reference to the CDrivesFolder and using GetDisplayNameOf for the pidl. svn path=/trunk/; revision=68865
This commit is contained in:
parent
90143b555c
commit
af3114c491
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ static HRESULT SHELL32_CoCreateInitSF (LPCITEMIDLIST pidlRoot, LPCWSTR pathRoot,
|
|||
CComPtr<IPersistFolder> ppf;
|
||||
CComPtr<IPersistFolder3> ppf3;
|
||||
|
||||
if (_ILIsFolder(pidlChild) &&
|
||||
if ((_ILIsFolder(pidlChild) || _ILIsDrive(pidlChild)) &&
|
||||
SUCCEEDED(pShellFolder->QueryInterface(IID_PPV_ARG(IPersistFolder3, &ppf3))))
|
||||
{
|
||||
PERSIST_FOLDER_TARGET_INFO ppfti;
|
||||
|
|
Loading…
Reference in a new issue