summaryrefslogtreecommitdiff
path: root/src/core/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/modules.cpp')
-rw-r--r--src/core/modules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/modules.cpp b/src/core/modules.cpp
index b36a6812cc..cc1e59b113 100644
--- a/src/core/modules.cpp
+++ b/src/core/modules.cpp
@@ -29,7 +29,7 @@ static DWORD mainThreadId;
static HANDLE hMainThread;
static HANDLE hMissingService;
-void CheckRestart(); // core: IDD_WAITRESTART
+int CheckRestart(); // core: IDD_WAITRESTART
int LoadSystemModule(void); // core: m_system.h services
int LoadNewPluginsModuleInfos(void); // core: preloading plugins
@@ -95,7 +95,7 @@ int LoadDefaultModules(void)
//load order is very important for these
if ( LoadSystemModule()) return 1;
if ( LoadLangpackModule()) return 1; // langpack will be a system module in the new order so this is moved here
- CheckRestart();
+ if ( CheckRestart()) return 1;
if ( LoadUtilsModule()) return 1; //order not important for this, but no dependencies and no point in pluginising
if ( LoadIcoTabsModule()) return 1;
if ( LoadHeaderbarModule()) return 1;