From a726af53f03ff37df6c57afd6ab947ace70dea47 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 25 Dec 2012 19:44:14 +0000 Subject: minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@2845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/main.cpp | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'plugins/Db_autobackups/src/main.cpp') diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index e494f0a5d9..aba289b59d 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -4,8 +4,8 @@ HINSTANCE hInst; +TCHAR *profilePath; int hLangpack; -TCHAR* profilePath; HANDLE hFolder; HANDLE hHooks[4]; @@ -20,10 +20,7 @@ PLUGININFOEX pluginInfo={ "chaos.persei@gmail.com", __COPYRIGHTS, "http://miranda-ng.org/", - UNICODE_AWARE, //doesn't replace anything built-in - // Generate your own unique id for your plugin. - // Do not use this UUID! - // Use uuidgen.exe to generate the uuuid + UNICODE_AWARE, // {81C220A6-0226-4ad6-BFCA-217B17A16053} { 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } } }; @@ -107,7 +104,8 @@ static int ModulesLoad(WPARAM wParam, LPARAM lParam) // can't do this on unload, since other plugins will be have already been unloaded, but their hooks // for setting changed event not cleared. the backup on exit function will write to the db, calling those hooks. -int PreShutdown(WPARAM wParam, LPARAM lParam) { +int PreShutdown(WPARAM wParam, LPARAM lParam) +{ if(options.backup_types & BT_EXIT) { options.disable_popups = 1; // Don't try to show popups on exit @@ -131,7 +129,7 @@ void SysInit() BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { - hInst=hinstDLL; + hInst = hinstDLL; return TRUE; } @@ -149,16 +147,14 @@ extern "C" __declspec(dllexport) int Load(void) extern "C" __declspec(dllexport) int Unload(void) { - int i; - OleUninitialize(); - for (i=0; i