MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / createPersistFile

Method createPersistFile

src/envshortcut.cpp:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
131Shortcut::Shortcut() : m_iconIndex(0) {}

Callers

nothing calls this directly

Calls 1

ShellLinkExceptionClass · 0.85

Tested by

no test coverage detected