- the parameter flags is of type unsigned. Therefore you dont need an additional...
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 14 Jan 2007 18:07:56 +0000 (18:07 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 14 Jan 2007 18:07:56 +0000 (18:07 +0000)
svn path=/trunk/; revision=25454

reactos/lib/rtl/unicode.c

index 6819b61..7c39bde 100644 (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;
     }