Fixed crash on Win8 (Thanks to @skrebbel for reporting it)

This commit is contained in:
Daniel Collin 2013-01-09 22:18:17 +01:00
parent 902a888fbc
commit 9a0873aec4

View File

@ -166,6 +166,8 @@ bool createWindow(const wchar_t* title, int width, int height)
}
}
Editor_create();
getRecentFiles();
Window_buildMenu();
Window_populateRecentList(Editor_getRecentFiles());
@ -173,7 +175,6 @@ bool createWindow(const wchar_t* title, int width, int height)
ShowWindow(s_window, SW_SHOW);
SetForegroundWindow(s_window);
SetFocus(s_window);
Editor_create();
return TRUE;
}