MCPcopy Create free account
hub / github.com/NtQuery/Scylla / buildConfigFilePath

Method buildConfigFilePath

Scylla/ConfigurationHolder.cpp:193–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool ConfigurationHolder::buildConfigFilePath(const WCHAR* fileName)
194{
195 ZeroMemory(configPath, sizeof(configPath));
196
197 if (!GetModuleFileName(0, configPath, _countof(configPath)))
198 {
199#ifdef DEBUG_COMMENTS
200 Scylla::debugLog.log(L"buildConfigFilePath :: GetModuleFileName failed %d", GetLastError());
201#endif
202 return false;
203 }
204
205 PathRemoveFileSpec(configPath);
206 PathAppend(configPath, fileName);
207
208 return true;
209}

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected