// String then StrnLenS returns MaxSize. At most the first MaxSize characters of String shall\r
// be accessed by StrnLenS.\r
//\r
- for (Length = 0; (*String != 0) && (Length < MaxSize); String++, Length++) {\r
+ for (Length = 0; (Length < MaxSize) && (*String != 0); String++, Length++) {\r
;\r
}\r
return Length;\r
// String then AsciiStrnLenS returns MaxSize. At most the first MaxSize characters of String shall\r
// be accessed by AsciiStrnLenS.\r
//\r
- for (Length = 0; (*String != 0) && (Length < MaxSize); String++, Length++) {\r
+ for (Length = 0; (Length < MaxSize) && (*String != 0); String++, Length++) {\r
;\r
}\r
return Length;\r