[WIN32] fixed: if we don't found - for whatever reason - a suitable monitor, abort...
authorwsoltys <wiso@no.way>
Tue, 9 Jul 2013 15:07:50 +0000 (17:07 +0200)
committerwsoltys <wiso@no.way>
Tue, 9 Jul 2013 15:10:24 +0000 (17:10 +0200)
xbmc/windowing/windows/WinSystemWin32.cpp

index c0536ca..3e801c2 100644 (file)
@@ -60,6 +60,12 @@ bool CWinSystemWin32::InitWindowSystem()
   if(!CWinSystemBase::InitWindowSystem())
     return false;
 
+  if(m_MonitorsInfo.size() < 1)
+  {
+    CLog::Log(LOGERROR, "%s - no suitable monitor found, aborting...", __FUNCTION__);
+    return false;
+  }
+
   return true;
 }