[RTL][NETSHELL]

- Fix the remaining issues from preceding commits

svn path=/trunk/; revision=53522
This commit is contained in:
Thomas Faber 2011-09-01 16:58:20 +00:00
parent 6b2123e650
commit 59f551c02b
2 changed files with 3 additions and 3 deletions

View file

@ -179,7 +179,7 @@ UpdateLanStatus(HWND hwndDlg, LANSTATUSUI_CONTEXT * pContext)
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 @@ UpdateLanStatus(HWND hwndDlg, LANSTATUSUI_CONTEXT * pContext)
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)
{

View file

@ -339,7 +339,7 @@ RtlSetBits(
}
/* Set all full ULONGs */
RtlFillMemoryUlong(Buffer, MAXULONG, NumberToSet >> 3);
RtlFillMemoryUlong(Buffer, NumberToSet >> 3, MAXULONG);
Buffer += NumberToSet >> 5;
/* Set what's left */