From 6e85ee3a4303cee9029ec26b6584b7e1603aef05 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 17 May 2015 14:17:57 -0300 Subject: fix crash on help, closes #1873 --- platform/windows/godot_win.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/windows/godot_win.cpp b/platform/windows/godot_win.cpp index 81c90d9dd0..fe39051670 100644 --- a/platform/windows/godot_win.cpp +++ b/platform/windows/godot_win.cpp @@ -135,7 +135,12 @@ int widechar_main(int argc, wchar_t** argv) { argv_utf8[i] = wc_to_utf8(argv[i]); } - Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); + Error err = Main::setup(argv_utf8[0], argc - 1, &argv_utf8[1]); + + if (err!=OK) + return 255; + + if (Main::start()) os.run(); Main::cleanup(); -- cgit v1.2.3