| 164 | } |
| 165 | |
| 166 | HRESULT GetVirtualParentPath(PCIDLIST_ABSOLUTE pidlDirectory, PIDLIST_ABSOLUTE *pidlParent) |
| 167 | { |
| 168 | if (IsNamespaceRoot(pidlDirectory)) |
| 169 | { |
| 170 | *pidlParent = NULL; |
| 171 | return E_FAIL; |
| 172 | } |
| 173 | else |
| 174 | { |
| 175 | *pidlParent = ILCloneFull(pidlDirectory); |
| 176 | ILRemoveLastID(*pidlParent); |
| 177 | return S_OK; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | BOOL IsNamespaceRoot(PCIDLIST_ABSOLUTE pidl) |
| 182 | { |
no test coverage detected