From 28d2449a2207fa8c3f959c8037afe6e869300101 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 21 Sep 2013 18:41:21 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clistmod.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/modules/clist/clistmod.cpp') diff --git a/src/modules/clist/clistmod.cpp b/src/modules/clist/clistmod.cpp index 7d5fb02e43..025f3dfff7 100644 --- a/src/modules/clist/clistmod.cpp +++ b/src/modules/clist/clistmod.cpp @@ -44,7 +44,6 @@ int InitClistHotKeys(void); HANDLE hContactDoubleClicked, hContactIconChangedEvent; HIMAGELIST hCListImages; -BOOL(WINAPI * MySetProcessWorkingSetSize) (HANDLE, SIZE_T, SIZE_T); extern BYTE nameOrder[]; @@ -414,8 +413,8 @@ int fnShowHide(WPARAM, LPARAM) db_set_b(NULL, "CList", "State", SETTING_STATE_MINIMIZED); } - if (MySetProcessWorkingSetSize != NULL && db_get_b(NULL, "CList", "DisableWorkingSet", 1)) - MySetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); + if (db_get_b(NULL, "CList", "DisableWorkingSet", 1)) + SetProcessWorkingSetSize(GetCurrentProcess(), -1, -1); } return 0; } @@ -511,8 +510,6 @@ int LoadContactListModule2(void) CreateServiceFunction(MS_CLIST_HOTKEYSPROCESSMESSAGE, HotkeysProcessMessageStub); CreateServiceFunction(MS_CLIST_GETCONTACTICON, GetContactIcon); - MySetProcessWorkingSetSize = (BOOL(WINAPI *) (HANDLE, SIZE_T, SIZE_T)) GetProcAddress(GetModuleHandleA("kernel32"), "SetProcessWorkingSetSize"); - InitDisplayNameCache(); InitCListEvents(); InitGroupServices(); -- cgit v1.2.3