MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / GetFinalPathName

Function GetFinalPathName

CppCoverage/HandleInformation.cpp:111–119  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

109
110 //-------------------------------------------------------------------------
111 std::wstring GetFinalPathName(HANDLE hfile)
112 {
113 std::vector<wchar_t> buffer(PathBufferSize);
114
115 if (GetFinalPathNameByHandle(hfile, &buffer[0], static_cast<int>(buffer.size()) - 1, VOLUME_NAME_NT))
116 return &buffer[0];
117
118 return GetMappedFileNameStr(hfile);
119 }
120 }
121
122 //-------------------------------------------------------------------------

Callers 1

ComputeFilenameMethod · 0.85

Calls 1

GetMappedFileNameStrFunction · 0.85

Tested by

no test coverage detected