C#: Fix private field and local variable naming

This commit is contained in:
Tamas Vajk
2020-10-02 15:45:48 +02:00
parent ecb29a267b
commit 2e350caf9f
32 changed files with 669 additions and 669 deletions

View File

@@ -96,15 +96,15 @@ namespace Semmle.Util
length = Win32.GetFinalPathNameByHandle(hFile, outPath, outPath.Capacity, 0); // lgtm[cs/call-to-unmanaged-code]
}
const int PREAMBLE = 4; // outPath always starts \\?\
const int preamble = 4; // outPath always starts \\?\
if (length <= PREAMBLE)
if (length <= preamble)
{
// Failed. GetFinalPathNameByHandle() failed somehow.
return ConstructCanonicalPath(path, cache);
}
var result = outPath.ToString(PREAMBLE, length - PREAMBLE); // Trim off leading \\?\
var result = outPath.ToString(preamble, length - preamble); // Trim off leading \\?\
return result.StartsWith("UNC")
? @"\" + result.Substring(3)