| 114 | } |
| 115 | |
| 116 | COMPtr<IPersistFile> createPersistFile() |
| 117 | { |
| 118 | void* file = nullptr; |
| 119 | |
| 120 | const auto r = m_link->QueryInterface(IID_IPersistFile, &file); |
| 121 | throwOnFail(r, "failed to get IPersistFile interface"); |
| 122 | |
| 123 | if (!file) { |
| 124 | throw ShellLinkException("querying IPersistFile worked, pointer is null"); |
| 125 | } |
| 126 | |
| 127 | return COMPtr<IPersistFile>(static_cast<IPersistFile*>(file)); |
| 128 | } |
| 129 | }; |
| 130 | |
| 131 | Shortcut::Shortcut() : m_iconIndex(0) {} |
nothing calls this directly
no test coverage detected