(Windows) Improved error message on window creation failure

Former-commit-id: b00a5bc1511505bce2f1c34f32be662bee47cbf9
This commit is contained in:
Lynix 2015-03-18 13:03:35 +01:00
parent 74c4e93884
commit 371f899776
1 changed files with 3 additions and 0 deletions

View File

@ -160,7 +160,10 @@ bool NzWindowImpl::Create(const NzVideoMode& mode, const NzString& title, nzUInt
#endif #endif
if (!m_handle) if (!m_handle)
{
NazaraError("Failed to create window: " + NzError::GetLastSystemError());
return false; return false;
}
if (fullscreen) if (fullscreen)
{ {