MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / isOnSystemDrive

Function isOnSystemDrive

src/installer/gui/windows/utils/path.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool isOnSystemDrive(const std::wstring& fileName)
49{
50 if (!fileName.empty()) {
51 wstring systemDir = Utils::getSystemDir();
52 if (!systemDir.empty()) {
53 return ::PathIsSameRootW(systemDir.c_str(), fileName.c_str());;
54 }
55 }
56
57 return false;
58}
59
60bool equivalent(const std::wstring& fileName1, const std::wstring& fileName2)
61{

Callers 3

setInstallPathMethod · 0.85
WinMainFunction · 0.85
readFromRegistryMethod · 0.85

Calls 1

getSystemDirFunction · 0.70

Tested by

no test coverage detected