diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index 4160d73acf..c7674ea5db 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -88,7 +88,7 @@ unsigned wxDisplayFactoryMacOSX::GetCount() CGDisplayCount count; CGDisplayErr err = CGGetActiveDisplayList(0, NULL, &count); - wxCHECK_MSG( err != CGDisplayNoErr, 0, "CGGetActiveDisplayList() failed" ); + wxCHECK_MSG( err == CGDisplayNoErr, 0, "CGGetActiveDisplayList() failed" ); return count; } @@ -134,7 +134,7 @@ wxDisplayImpl *wxDisplayFactoryMacOSX::CreateDisplay(unsigned n) CGDirectDisplayID* theIDs = new CGDirectDisplayID[theCount]; CGDisplayErr err = CGGetActiveDisplayList(theCount, theIDs, &theCount); - wxCHECK_MSG( err != CGDisplayNoErr, NULL, "CGGetActiveDisplayList() failed" ); + wxCHECK_MSG( err == CGDisplayNoErr, NULL, "CGGetActiveDisplayList() failed" ); wxASSERT( n < theCount );