diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CrashDumper/src/crshdmp.cpp | 12 | ||||
-rw-r--r-- | plugins/DbEditorPP/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/VersionInfo/src/services.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp index 77bfc05501..39aa930072 100644 --- a/plugins/CrashDumper/src/crshdmp.cpp +++ b/plugins/CrashDumper/src/crshdmp.cpp @@ -41,7 +41,7 @@ bool servicemode; bool clsdates;
bool dtsubfldr;
-static const PLUGININFOEX pluginInfoEx =
+static const PLUGININFOEX pluginInfoEx =
{
sizeof(PLUGININFOEX),
"Crash Dumper",
@@ -59,7 +59,7 @@ static const PLUGININFOEX pluginInfoEx = const PLUGININFOEX* GetPluginInfoEx(void) { return &pluginInfoEx; }
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirVersion)
{
::mirandaVersion = mirVersion;
return (PLUGININFOEX*)&pluginInfoEx;
@@ -84,7 +84,7 @@ INT_PTR StoreVersionInfoToFile(WPARAM, LPARAM lParam) HANDLE hDumpFile = CreateFile(path, GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
- if (hDumpFile != INVALID_HANDLE_VALUE)
+ if (hDumpFile != INVALID_HANDLE_VALUE)
{
bkstring buffer;
@@ -143,7 +143,7 @@ INT_PTR ViewVersionInfo(WPARAM wParam, LPARAM) if (hRichModule == NULL && GetModuleHandle(TEXT("Riched20.dll")) == NULL)
hRichModule = LoadLibrary(TEXT("Riched20.dll"));
- CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_VIEWVERSION), NULL,
+ CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_VIEWVERSION), NULL,
DlgProcView, wParam ? (VI_FLAG_PRNVAR | VI_FLAG_PRNDLL) : VI_FLAG_PRNVAR);
return 0;
@@ -167,7 +167,7 @@ INT_PTR OpenUrl(WPARAM wParam, LPARAM) INT_PTR ServiceModeLaunch(WPARAM, LPARAM)
{
servicemode = true;
- return 0;
+ return SERVICE_ONLYDB;
}
@@ -341,7 +341,7 @@ static int ModulesLoaded(WPARAM, LPARAM) if (servicemode) ViewVersionInfo(0, 0);
else
{
- if (DBGetContactSettingByte(NULL, PluginName, "UploadChanged", 0) && !ProcessVIHash(false))
+ if (DBGetContactSettingByte(NULL, PluginName, "UploadChanged", 0) && !ProcessVIHash(false))
UploadVersionInfo(0, 0xa1);
}
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index 729cde6ebe..4ad0588629 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -269,7 +269,7 @@ int PreShutdown(WPARAM wParam,LPARAM lParam) INT_PTR ServiceMode(WPARAM wParam,LPARAM lParam)
{
bServiceMode = TRUE;
- return 0;
+ return SERVICE_ONLYDB; // load database and then call us
}
INT_PTR ImportFromFile(WPARAM wParam,LPARAM lParam)
diff --git a/plugins/VersionInfo/src/services.cpp b/plugins/VersionInfo/src/services.cpp index 4efa482404..0efdb387f4 100644 --- a/plugins/VersionInfo/src/services.cpp +++ b/plugins/VersionInfo/src/services.cpp @@ -72,5 +72,5 @@ INT_PTR ServiceModeService(WPARAM wParam, LPARAM lParam) {
bServiceMode = 1;
DoDebugTo(TO_ASK);
- return 0;
+ return SERVICE_ONLYDB; // load database and open a window
}
|