diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-10-28 14:32:02 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-10-31 08:45:25 +0800 |
commit | d115b80b7d31f0c2b5c7438de5258a6d263c4de2 (patch) | |
tree | 80b6b7411e9beead0124d0f960696df1258e1112 | |
parent | 4b7aee0a33097124ec0f833a78479004ceaabf03 (diff) | |
download | edk2-d115b80b7d31f0c2b5c7438de5258a6d263c4de2.zip edk2-d115b80b7d31f0c2b5c7438de5258a6d263c4de2.tar.gz edk2-d115b80b7d31f0c2b5c7438de5258a6d263c4de2.tar.bz2 |
NetworkPkg: Fix the wrong Timer event check
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
-rw-r--r-- | NetworkPkg/DnsDxe/DnsImpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/DnsDxe/DnsImpl.c b/NetworkPkg/DnsDxe/DnsImpl.c index 3f3b756..74deaa4 100644 --- a/NetworkPkg/DnsDxe/DnsImpl.c +++ b/NetworkPkg/DnsDxe/DnsImpl.c @@ -565,7 +565,7 @@ Dns4GetMapping ( return FALSE;
}
- while (!EFI_ERROR (gBS->CheckEvent (Service->TimerToGetMap))) {
+ while (EFI_ERROR (gBS->CheckEvent (Service->TimerToGetMap))) {
Udp->Poll (Udp);
if (!EFI_ERROR (Udp->GetModeData (Udp, NULL, &Ip4Mode, NULL, NULL)) &&
@@ -615,7 +615,7 @@ Dns6GetMapping ( return FALSE;
}
- while (!EFI_ERROR (gBS->CheckEvent (Service->TimerToGetMap))) {
+ while (EFI_ERROR (gBS->CheckEvent (Service->TimerToGetMap))) {
Udp->Poll (Udp);
if (!EFI_ERROR (Udp->GetModeData (Udp, NULL, &Ip6Mode, NULL, NULL))) {
|