From 9a0873aec4834fa3742f93eaa8e5a3afdf73790d Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Wed, 9 Jan 2013 22:18:17 +0100 Subject: [PATCH] Fixed crash on Win8 (Thanks to @skrebbel for reporting it) --- ogl_editor/src/windows/RocketWindow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ogl_editor/src/windows/RocketWindow.c b/ogl_editor/src/windows/RocketWindow.c index b3f136c..d0193ce 100644 --- a/ogl_editor/src/windows/RocketWindow.c +++ b/ogl_editor/src/windows/RocketWindow.c @@ -165,7 +165,9 @@ bool createWindow(const wchar_t* title, int width, int height) return FALSE; } } - + + 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; }