mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
C#: Fix private field and local variable naming
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user