fix crash on help, closes #1873

This commit is contained in:
Juan Linietsky 2015-05-17 14:17:57 -03:00
parent e72717e373
commit 6e85ee3a43
1 changed files with 6 additions and 1 deletions

View File

@ -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();