\r
ReturnValue = Destination;\r
\r
- while ((*Source != L'\0') && (Length > 1)) {\r
+ while ((*Source != L'\0') && (Length > 0)) {\r
*(Destination++) = *(Source++);\r
Length--;\r
}\r
ASSERT (StrSize (SecondString) != 0);\r
\r
while ((*FirstString != L'\0') &&\r
- (*FirstString != *SecondString) &&\r
+ (*FirstString == *SecondString) &&\r
(Length > 1)) {\r
FirstString++;\r
SecondString++;\r
\r
ReturnValue = Destination;\r
\r
- while (*Source && Length > 1) {\r
+ while (*Source && Length > 0) {\r
*(Destination++) = *(Source++);\r
Length--;\r
}\r
ASSERT (AsciiStrSize (SecondString));\r
\r
while ((*FirstString != '\0') &&\r
- (*FirstString != *SecondString) &&\r
+ (*FirstString == *SecondString) &&\r
(Length > 1)) {\r
FirstString++;\r
SecondString++;\r