cygwin: fix formatting in check_reparse_point_target

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2017-07-24 17:32:20 +02:00
parent be1485191f
commit 42f1be581c
1 changed files with 3 additions and 3 deletions

View File

@ -2276,10 +2276,10 @@ check_reparse_point_target (PUNICODE_STRING subst)
*/
if (RtlEqualUnicodePathPrefix (subst, &ro_u_natp, FALSE))
{
if (subst->Length >= 6*sizeof(WCHAR) && subst->Buffer[5] == L':' &&
(subst->Length == 6*sizeof(WCHAR) || subst->Buffer[6] == L'\\'))
if (subst->Length >= 6 * sizeof(WCHAR) && subst->Buffer[5] == L':' &&
(subst->Length == 6 * sizeof(WCHAR) || subst->Buffer[6] == L'\\'))
return true;
else if (subst->Length >= 8*sizeof(WCHAR) &&
else if (subst->Length >= 8 * sizeof(WCHAR) &&
wcsncmp (subst->Buffer + 4, L"UNC\\", 4) == 0)
return true;
}