diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-07-27 07:49:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-07-27 07:49:19 +0000 |
commit | 6894431a39b535f4c2721bba1ec02b827f6f09bb (patch) | |
tree | e8ca209fb0098b03540d5d6361d15154eda4a43f /plugins/StartPosition/src/main.cpp | |
parent | 187e22d9e5a343022c34ef882629e96188c91039 (diff) |
fixed "Always start ... opened" (patch by goraf) (fixes #428)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StartPosition/src/main.cpp')
-rw-r--r-- | plugins/StartPosition/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/StartPosition/src/main.cpp b/plugins/StartPosition/src/main.cpp index ef670d99ea..127845c51d 100644 --- a/plugins/StartPosition/src/main.cpp +++ b/plugins/StartPosition/src/main.cpp @@ -46,7 +46,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) return TRUE;
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -163,7 +163,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP /*end uninstall old settings*/
if(IsDlgButtonChecked(hwndDlg, IDC_CLSTATEOPENED))
- db_set_b(NULL, MODULE_NAME, "CLState", 1);
+ db_set_b(NULL, MODULE_NAME, "CLState", 2);
else
db_set_b(NULL, MODULE_NAME, "CLState", 0);
@@ -191,7 +191,7 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP return FALSE;
}
-int OptInit(WPARAM wParam, LPARAM lParam)
+int OptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = {0};
odp.cbSize = sizeof(odp);
@@ -227,7 +227,7 @@ extern "C" __declspec(dllexport) int Load(void) DWORD clWidth = db_get_dw(NULL, MODULE_NAME, "CLWidth", 180);
BYTE clEnableState = db_get_b(NULL, MODULE_NAME, "CLEnableState", 0);
- BYTE clState = db_get_b(NULL, MODULE_NAME, "CLState", 1);
+ BYTE clState = db_get_b(NULL, MODULE_NAME, "CLState", 2);
if(clEnableState)
db_set_b(NULL,"CList", "State", (BYTE)clState);
|