mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
use correct null macros for mach ports. b=342192 r=mento
This commit is contained in:
parent
03ecb80d2b
commit
34e6efc1ed
@ -61,7 +61,7 @@
|
||||
#include "nsIObserver.h"
|
||||
|
||||
|
||||
static io_connect_t gRootPort = nsnull;
|
||||
static io_connect_t gRootPort = MACH_PORT_NULL;
|
||||
|
||||
static const char kQuartzRenderingPref[] = "browser.quartz.enable";
|
||||
static const char kAllFontSizesPref[] = "browser.quartz.enable.all_font_sizes";
|
||||
@ -215,7 +215,7 @@ nsToolkitBase::RegisterForSleepWakeNotifcations()
|
||||
NS_ASSERTION(!mSleepWakeNotificationRLS, "Already registered for sleep/wake");
|
||||
|
||||
gRootPort = ::IORegisterForSystemPower(0, ¬ifyPortRef, ToolkitSleepWakeCallback, &mPowerNotifier);
|
||||
if (gRootPort == NULL)
|
||||
if (gRootPort == MACH_PORT_NULL)
|
||||
{
|
||||
NS_ASSERTION(0, "IORegisterForSystemPower failed");
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user