From 8937c49faab219b51b9863847406a21945d3a9cb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Apr 2018 14:15:55 +0300 Subject: Windows lists: - fix for a 64-bit issue that could cause a crash; - code cleaning --- include/m_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/m_utils.h') diff --git a/include/m_utils.h b/include/m_utils.h index bd07c2ac9e..f7bf4cb80d 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -138,7 +138,7 @@ EXTERN_C MIR_CORE_DLL(void) WindowList_Destroy(MWindowList &hList); // adds a window to the specified window list // returns 0 on success, nonzero on failure -EXTERN_C MIR_CORE_DLL(int) WindowList_Add(MWindowList hList, HWND hwnd, MCONTACT hContact); +EXTERN_C MIR_CORE_DLL(int) WindowList_Add(MWindowList hList, HWND hwnd, UINT_PTR param = 0); ///////////////////////////////////////////////////////////////////////////////////////// // removes a window from the specified window list @@ -147,10 +147,10 @@ EXTERN_C MIR_CORE_DLL(int) WindowList_Add(MWindowList hList, HWND hwnd, MCONTACT EXTERN_C MIR_CORE_DLL(int) WindowList_Remove(MWindowList hList, HWND hwnd); ///////////////////////////////////////////////////////////////////////////////////////// -// finds a window given the hContact +// finds a window by associated parameter's value // returns the window handle on success, or NULL on failure -EXTERN_C MIR_CORE_DLL(HWND) WindowList_Find(MWindowList hList, MCONTACT hContact); +EXTERN_C MIR_CORE_DLL(HWND) WindowList_Find(MWindowList hList, UINT_PTR param); ///////////////////////////////////////////////////////////////////////////////////////// // sends a message to all windows in a list using SendMessage -- cgit v1.2.3