diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-25 19:02:16 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-25 19:02:16 +0000 |
commit | 2c2e28046ed2d35c86db83b42a068ad9878c0241 (patch) | |
tree | 828b76219aeb6b56e47e6381098899e9a10d65b9 /plugins/Db_autobackups/src/main.cpp | |
parent | 243b8756ca89c490cd0e795dc2077cabe7afa5f7 (diff) |
creatig backup in separate thread
git-svn-id: http://svn.miranda-ng.org/main/trunk@2841 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/main.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index 055fc80df2..e494f0a5d9 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -35,9 +35,9 @@ static IconItem iconList[] = { INT_PTR BackupServiceTrgr(WPARAM wParam, LPARAM lParam)
{
- if(wParam & ACT_PERFORM) {
- return Backup(NULL);
- }
+ if(wParam & ACT_PERFORM)
+ mir_forkthread(BackupThread, NULL);
+
return 0;
}
@@ -101,7 +101,7 @@ static int ModulesLoad(WPARAM wParam, LPARAM lParam) hHooks[1] = HookEvent(ME_OPT_INITIALISE, OptionsInit);
if(options.backup_types & BT_START)
- Backup(NULL);
+ mir_forkthread(BackupThread, NULL);
return 0;
}
@@ -111,14 +111,14 @@ int PreShutdown(WPARAM wParam, LPARAM lParam) { if(options.backup_types & BT_EXIT)
{
options.disable_popups = 1; // Don't try to show popups on exit
- Backup(NULL);
+ mir_forkthread(BackupThread, NULL);
}
return 0;
}
void SysInit()
{
- mir_getLP( &pluginInfo );
+ mir_getLP(&pluginInfo);
OleInitialize(0);
hServices[0] = CreateServiceFunction(MS_AB_BACKUP, ABService);
|