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

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