mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
- the parameter flags is of type unsigned. Therefore you dont need an additional check if Flags < 0
svn path=/trunk/; revision=25454
This commit is contained in:
parent
363cf7f261
commit
21f599291b
1 changed files with 1 additions and 1 deletions
|
@ -2105,7 +2105,7 @@ RtlDuplicateUnicodeString(
|
|||
if (SourceString == NULL || DestinationString == NULL ||
|
||||
SourceString->Length > SourceString->MaximumLength ||
|
||||
(SourceString->Length == 0 && SourceString->MaximumLength > 0 && SourceString->Buffer == NULL) ||
|
||||
Flags == RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING || Flags >= 4 || Flags < 0) {
|
||||
Flags == RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING || Flags >= 4) {
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue