From 50fb93f0bd6075a0f3cfb77abfc5a3aa9d75a5a6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 Jun 2012 12:27:07 +0000 Subject: Db_autobackups: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@544 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/backup.cpp | 2 +- plugins/Db_autobackups/db_autobackups_10.vcxproj | 6 +++--- plugins/Db_autobackups/db_autobackups_10.vcxproj.filters | 6 +++--- plugins/Db_autobackups/headers.h | 2 +- plugins/Db_autobackups/main.cpp | 11 +++++------ 5 files changed, 13 insertions(+), 14 deletions(-) (limited to 'plugins') diff --git a/plugins/Db_autobackups/backup.cpp b/plugins/Db_autobackups/backup.cpp index fd27c9f09f..a6b78dace2 100644 --- a/plugins/Db_autobackups/backup.cpp +++ b/plugins/Db_autobackups/backup.cpp @@ -180,7 +180,7 @@ int Backup(TCHAR* backup_filename) dest_file_len = lstrlen(dest_file); if(dest_file_len > 50) { - puText = mir_alloc(sizeof(TCHAR) * (dest_file_len + 2)); + puText = (TCHAR*)mir_alloc(sizeof(TCHAR) * (dest_file_len + 2)); for(i = (int)dest_file_len - 1; dest_file[i] != _T('\\'); i--); lstrcpyn(puText, dest_file, i + 2); diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj b/plugins/Db_autobackups/db_autobackups_10.vcxproj index 18ef0b6135..eb409a44ae 100644 --- a/plugins/Db_autobackups/db_autobackups_10.vcxproj +++ b/plugins/Db_autobackups/db_autobackups_10.vcxproj @@ -151,9 +151,9 @@ - - - + + + diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters b/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters index 964916d73a..52d562b3c9 100644 --- a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters +++ b/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters @@ -15,13 +15,13 @@ - + Source Files - + Source Files - + Source Files diff --git a/plugins/Db_autobackups/headers.h b/plugins/Db_autobackups/headers.h index b0c235855a..41da04b69b 100644 --- a/plugins/Db_autobackups/headers.h +++ b/plugins/Db_autobackups/headers.h @@ -44,6 +44,6 @@ int LoadOptions(void); HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle); extern HINSTANCE hInst; -TCHAR* profilePath; +extern TCHAR* profilePath; #endif diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp index 1d00a3b60f..714c02d3f6 100644 --- a/plugins/Db_autobackups/main.cpp +++ b/plugins/Db_autobackups/main.cpp @@ -6,6 +6,7 @@ struct MM_INTERFACE mmi; HINSTANCE hInst; PLUGINLINK *pluginLink; int hLangpack; +TCHAR* profilePath; HANDLE hFolder; HANDLE hHooks[4]; @@ -29,8 +30,6 @@ PLUGININFOEX pluginInfo={ { 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } } }; -#define MIID_DB_AUTOBACKUPS { 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } } - struct { TCHAR* szDescr; @@ -165,19 +164,19 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) return TRUE; } -__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } -int __declspec(dllexport) Load(PLUGINLINK *link) +extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) { pluginLink=link; SysInit(); return 0; } -int __declspec(dllexport) Unload(void) +extern "C" __declspec(dllexport) int Unload(void) { int i; @@ -249,4 +248,4 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle) SendMessage(hwndTT, TTM_SETTITLE, 1, (LPARAM)ptszTitle); SendMessage(hwndTT, TTM_SETMAXTIPWIDTH, 0, (LPARAM)700); return hwndTT; -} +} \ No newline at end of file -- cgit v1.2.3