Author: cgutman
Date: Tue Jun 23 18:51:50 2009
New Revision: 41590
URL:
http://svn.reactos.org/svn/reactos?rev=41590&view=rev
Log:
- Fix the order of checks
Modified:
trunk/reactos/drivers/network/ndis/ndis/config.c
Modified: trunk/reactos/drivers/network/ndis/ndis/config.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] Tue Jun 23 18:51:50
2009
@@ -703,7 +703,7 @@
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);