Return nullptr if window creation fails
This commit is contained in:
parent
89dcddbdca
commit
7f1849f9bc
1 changed files with 2 additions and 2 deletions
|
|
@ -964,7 +964,7 @@ HWND VulkanExampleBase::setupWindow(HINSTANCE hinstance, WNDPROC wndproc)
|
|||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue