[NTOS]: Avoid initializing variables within if-conditions.

svn path=/trunk/; revision=75134
This commit is contained in:
Hermès Bélusca-Maïto 2017-06-19 16:30:17 +00:00
parent 5cb03586f5
commit 3c1c6952b7

View file

@ -405,7 +405,8 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
}
/* Make sure there really is a string */
if ((StringLength = LocalName.Length))
StringLength = LocalName.Length;
if (StringLength)
{
/* Check that the size is a valid WCHAR multiple */
if ((StringLength & (sizeof(WCHAR) - 1)) ||