diff options
author | George Hazan <george.hazan@gmail.com> | 2016-10-04 17:49:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-10-04 17:49:19 +0000 |
commit | 65014cc73c6f302923e2cf6f5c2b59f23e7884a3 (patch) | |
tree | 555d8e3325a1a97cf6a908cc905bdb69113d839c /plugins/StatusPlugins/StartupStatus | |
parent | de73f6239e174ae95a863ecd7b66809b54110626 (diff) |
wanwarning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@17353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus')
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/profiles.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp index faa14b04ca..51a4bccc71 100644 --- a/plugins/StatusPlugins/StartupStatus/profiles.cpp +++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp @@ -200,12 +200,10 @@ static void CALLBACK releaseTtbTimerFunction(HWND, UINT, UINT_PTR, DWORD) CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)ttbButtons[i], 0); } -INT_PTR LoadAndSetProfile(WPARAM wParam, LPARAM) +INT_PTR LoadAndSetProfile(WPARAM iProfileNo, LPARAM) { // wParam == profile no. - int profileCount = GetProfileCount(0, 0); - int profile = (int)wParam; - + int profile = (int)iProfileNo; TSettingsList profileSettings(10, CompareSettings); if (!GetProfile(profile, profileSettings)) { profile = (profile >= 0) ? profile : db_get_w(NULL, MODULENAME, SETTING_DEFAULTPROFILE, 0); |