- Fix the order of checks

svn path=/trunk/; revision=41590
This commit is contained in:
Cameron Gutman 2009-06-23 14:51:50 +00:00
parent d516d6898c
commit 5c78f6d219

View file

@ -703,7 +703,7 @@ NdisReadNetworkAddress(
str = ParameterValue->ParameterData.StringData;
}
while (str.Buffer[j] != '\0' && j < str.Length) j++;
while (j < str.Length && str.Buffer[j] != '\0') j++;
*NetworkAddressLength = (UINT)((j/2)+0.5);