[ros-diffs] [tfaber] 53522: [RTL][NETSHELL] - Fix the remaining issues from preceding commits
tfaber at svn.reactos.org
tfaber at svn.reactos.org
Thu Sep 1 16:58:21 UTC 2011
Author: tfaber
Date: Thu Sep 1 16:58:20 2011
New Revision: 53522
URL: http://svn.reactos.org/svn/reactos?rev=53522&view=rev
Log:
[RTL][NETSHELL]
- Fix the remaining issues from preceding commits
Modified:
trunk/reactos/dll/win32/netshell/lanstatusui.c
trunk/reactos/lib/rtl/bitmap.c
Modified: trunk/reactos/dll/win32/netshell/lanstatusui.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanstatusui.c?rev=53522&r1=53521&r2=53522&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] Thu Sep 1 16:58:20 2011
@@ -179,7 +179,7 @@
pContext->Status = 3;
}
}
- else if (IfEntry.dwOperStatus == (MIB_IF_OPER_STATUS_UNREACHABLE | MIB_IF_OPER_STATUS_DISCONNECTED))
+ else if (IfEntry.dwOperStatus == MIB_IF_OPER_STATUS_UNREACHABLE || IfEntry.dwOperStatus == MIB_IF_OPER_STATUS_DISCONNECTED)
{
if (pContext->Status != 4)
{
@@ -187,7 +187,7 @@
pContext->Status = 4;
}
}
- else if (MIB_IF_OPER_STATUS_NON_OPERATIONAL)
+ else if (IfEntry.dwOperStatus == MIB_IF_OPER_STATUS_NON_OPERATIONAL)
{
if (pContext->Status != 5)
{
Modified: trunk/reactos/lib/rtl/bitmap.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/bitmap.c?rev=53522&r1=53521&r2=53522&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] Thu Sep 1 16:58:20 2011
@@ -339,7 +339,7 @@
}
/* Set all full ULONGs */
- RtlFillMemoryUlong(Buffer, MAXULONG, NumberToSet >> 3);
+ RtlFillMemoryUlong(Buffer, NumberToSet >> 3, MAXULONG);
Buffer += NumberToSet >> 5;
/* Set what's left */
More information about the Ros-diffs
mailing list