mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS]: Avoid initializing variables within if-conditions.
svn path=/trunk/; revision=75134
This commit is contained in:
parent
5cb03586f5
commit
3c1c6952b7
1 changed files with 2 additions and 1 deletions
|
@ -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)) ||
|
||||
|
|
Loading…
Reference in a new issue