[ros-diffs] [cgutman] 41590: - Fix the order of checks

cgutman at svn.reactos.org cgutman at svn.reactos.org
Tue Jun 23 16:51:51 CEST 2009


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/config.c?rev=41590&r1=41589&r2=41590&view=diff
==============================================================================
--- 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);
 



More information about the Ros-diffs mailing list