Author: janderwald
Date: Sun Jan 14 21:07:56 2007
New Revision: 25454
URL:
http://svn.reactos.org/svn/reactos?rev=25454&view=rev
Log:
- the parameter flags is of type unsigned. Therefore you dont need an additional check if
Flags < 0
Modified:
trunk/reactos/lib/rtl/unicode.c
Modified: trunk/reactos/lib/rtl/unicode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=2545…
==============================================================================
--- trunk/reactos/lib/rtl/unicode.c (original)
+++ trunk/reactos/lib/rtl/unicode.c Sun Jan 14 21:07:56 2007
@@ -2105,7 +2105,7 @@
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;
}