From 8fe663b6618f5d11c541c75fd5fed5d9f9038f82 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Jun 2015 13:34:21 +0000 Subject: a few minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14162 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/mir_core_10.vcxproj | 4 ++++ src/mir_core/mir_core_12.vcxproj | 4 ++++ src/mir_core/src/commonheaders.h | 1 + src/mir_core/src/icons.cpp | 4 ++-- src/mir_core/src/protos.cpp | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mir_core/mir_core_10.vcxproj b/src/mir_core/mir_core_10.vcxproj index df30bc9e90..ce4eb74f8c 100644 --- a/src/mir_core/mir_core_10.vcxproj +++ b/src/mir_core/mir_core_10.vcxproj @@ -175,6 +175,7 @@ $(ProfileDir)..\..\bin10\lib $(IntDir)$(TargetName).lib /ignore:4197 %(AdditionalOptions) + mir_app.dll @@ -214,6 +215,7 @@ ws2_32.lib;comctl32.lib;winmm.lib;version.lib;%(AdditionalDependencies) $(ProfileDir)..\..\bin10\lib /ignore:4197 %(AdditionalOptions) + mir_app.dll ..\..\build\make_ver.bat @@ -248,6 +250,7 @@ $(ProfileDir)..\..\bin10\lib $(IntDir)$(TargetName).lib /PDBALTPATH:%_PDB% /ignore:4197 + mir_app.dll @@ -290,6 +293,7 @@ ws2_32.lib;comctl32.lib;winmm.lib;version.lib;%(AdditionalDependencies) $(ProfileDir)..\..\bin10\lib /PDBALTPATH:%_PDB% /ignore:4197 + mir_app.dll ..\..\build\make_ver.bat diff --git a/src/mir_core/mir_core_12.vcxproj b/src/mir_core/mir_core_12.vcxproj index 1892d9c52f..a83072c7fd 100644 --- a/src/mir_core/mir_core_12.vcxproj +++ b/src/mir_core/mir_core_12.vcxproj @@ -184,6 +184,7 @@ $(IntDir)$(TargetName).lib false /ignore:4197 %(AdditionalOptions) + mir_app.dll @@ -223,6 +224,7 @@ ws2_32.lib;comctl32.lib;winmm.lib;version.lib;%(AdditionalDependencies) $(ProfileDir)..\..\bin12\lib /ignore:4197 %(AdditionalOptions) + mir_app.dll ..\..\build\make_ver.bat @@ -257,6 +259,7 @@ $(ProfileDir)..\..\bin12\lib $(IntDir)$(TargetName).lib /ignore:4197 %(AdditionalOptions) + mir_app.dll @@ -299,6 +302,7 @@ ws2_32.lib;comctl32.lib;winmm.lib;version.lib;%(AdditionalDependencies) $(ProfileDir)..\..\bin12\lib /ignore:4197 %(AdditionalOptions) + mir_app.dll ..\..\build\make_ver.bat diff --git a/src/mir_core/src/commonheaders.h b/src/mir_core/src/commonheaders.h index f5497075a2..7bc862bfa0 100644 --- a/src/mir_core/src/commonheaders.h +++ b/src/mir_core/src/commonheaders.h @@ -57,6 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include +#include #include #include "miranda.h" diff --git a/src/mir_core/src/icons.cpp b/src/mir_core/src/icons.cpp index fe3bb37319..cd85f31b06 100644 --- a/src/mir_core/src/icons.cpp +++ b/src/mir_core/src/icons.cpp @@ -46,7 +46,7 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte sid.cx = sid.cy = pIcons[i].size; sid.description.a = pIcons[i].szDescr; sid.iDefaultIndex = -pIcons[i].defIconID; - pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid); + pIcons[i].hIcolib = IcoLib_AddIcon(&sid, hLangpack); } } @@ -71,6 +71,6 @@ MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR *szSection, IconI sid.cx = sid.cy = pIcons[i].size; sid.description.t = pIcons[i].tszDescr; sid.iDefaultIndex = -pIcons[i].defIconID; - pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid); + pIcons[i].hIcolib = IcoLib_AddIcon(&sid, hLangpack); } } diff --git a/src/mir_core/src/protos.cpp b/src/mir_core/src/protos.cpp index 051e5a9792..d643a811f4 100644 --- a/src/mir_core/src/protos.cpp +++ b/src/mir_core/src/protos.cpp @@ -104,7 +104,7 @@ MIR_CORE_DLL(void) ProtoConstructor(PROTO_INTERFACE *pThis, LPCSTR pszModuleName pThis->m_iVersion = 2; pThis->m_iStatus = pThis->m_iDesiredStatus = ID_STATUS_OFFLINE; pThis->m_szModuleName = mir_strdup(pszModuleName); - pThis->m_hProtoIcon = (HANDLE)CallService("Skin2/Icons/IsManaged", (WPARAM)LoadSkinnedProtoIcon(pszModuleName, ID_STATUS_ONLINE), 0); + pThis->m_hProtoIcon = IcoLib_IsManaged(LoadSkinnedProtoIcon(pszModuleName, ID_STATUS_ONLINE)); pThis->m_tszUserName = mir_tstrdup(ptszUserName); } -- cgit v1.2.3