From 7f1849f9bc223bba620ff0009e146b5cbd007ebc Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 22 Apr 2017 11:47:34 +0200 Subject: [PATCH] Return nullptr if window creation fails --- base/vulkanexamplebase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index d9234a1f6..d79c56334 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -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); }