Skip to content

Commit

Permalink
Return nullptr if window creation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems committed Apr 22, 2017
1 parent 89dcddb commit 7f1849f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/vulkanexamplebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ HWND VulkanExampleBase::setupWindow(HINSTANCE hinstance, WNDPROC wndproc)
}
else
{
return false;
return nullptr;
}
}
}
Expand Down Expand Up @@ -1019,7 +1019,7 @@ HWND VulkanExampleBase::setupWindow(HINSTANCE hinstance, WNDPROC wndproc)
{
printf("Could not create window!\n");
fflush(stdout);
return 0;
return nullptr;
exit(1);
}

Expand Down

0 comments on commit 7f1849f

Please sign in to comment.