diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-07-17 18:59:06 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-07-17 18:59:06 +0000 |
commit | a6f37bd3c2b705a525d478f759b8d8144b902967 (patch) | |
tree | d79d4188e53ec46961e5abe2e3c0b903c28e268b /Sessions/Src/Utils.cpp | |
parent | a818ed0593c74735eb2e888bb09c169cf82c894f (diff) |
Sessions:
fixed bug with mir_free
fixed not loading contacts more then one
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@154 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'Sessions/Src/Utils.cpp')
-rw-r--r-- | Sessions/Src/Utils.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/Sessions/Src/Utils.cpp b/Sessions/Src/Utils.cpp index c25b6e8..4b5ba06 100644 --- a/Sessions/Src/Utils.cpp +++ b/Sessions/Src/Utils.cpp @@ -346,11 +346,10 @@ void SetInSessionOrder(HANDLE hContact,int mode,int count,unsigned int ordernum) BOOL ResaveSettings(char* szName,int iFirst,int iLimit,TCHAR* szBuffer)
{
- int i=0;
BYTE marked,marked_t;
char szNameBuf[256]={0};
- for (i=iFirst;i<iLimit;i++)
+ for (int i = iFirst; i < iLimit; i++)
{
if (szBuffer)
{
@@ -507,21 +506,9 @@ void OffsetWindow(HWND parent, HWND hwnd, int dx, int dy) SetWindowPos(hwnd, NULL, rc.left, rc.top,0, 0, SWP_NOZORDER |SWP_NOSIZE);
}
-int CheckContactVisibility(DWORD hContact)
+int CheckContactVisibility(HANDLE hContact)
{
- MessageWindowInputData mwid;
- MessageWindowData mwd;
-
- mwid.cbSize = sizeof(MessageWindowInputData);
- mwid.hContact=(HANDLE)hContact;
- mwid.uFlags=MSG_WINDOW_UFLAG_MSG_BOTH;
-
- mwd.cbSize = sizeof(MessageWindowData);
- mwd.hContact = mwid.hContact;
- mwd.uFlags=MSG_WINDOW_UFLAG_MSG_BOTH;
- CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid,(LPARAM)&mwd);
-
- if(!IsWindowVisible(mwd.hwndWindow))
+ if (DBGetContactSettingByte(hContact, "CList", "Hidden", 0))
return 0;
return 1;
}
|