From 9fe95160d22e34d5a3a1ce644173e3f75cc1e2f2 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Mon, 11 Jan 2010 07:40:00 -0800 Subject: [PATCH] Bug 538930 - [@ @0x0 | nsNotifyAddrListener::Run] assumes InitIPHelperLibrary will never fail and that sNotifyAddrChange will be non null, r=biesi --- netwerk/system/win32/nsNotifyAddrListener.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netwerk/system/win32/nsNotifyAddrListener.cpp b/netwerk/system/win32/nsNotifyAddrListener.cpp index 718ba5e48ca1..c8ae22b36721 100644 --- a/netwerk/system/win32/nsNotifyAddrListener.cpp +++ b/netwerk/system/win32/nsNotifyAddrListener.cpp @@ -177,6 +177,11 @@ nsNotifyAddrListener::Run() InitIPHelperLibrary(); + if (!sNotifyAddrChange) { + CloseHandle(ev); + return NS_ERROR_NOT_AVAILABLE; + } + overlapped.hEvent = ev; while (!shuttingDown) { HANDLE h;