- 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:
Johannes Anderwald 2007-01-14 18:07:56 +00:00
parent 363cf7f261
commit 21f599291b

View file

@ -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;
}