From cb2efce1a4fe9c89c5fef63b3aca63f3e63983fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Aug 2019 13:41:45 +0300 Subject: obsolete services removed from core & replaced with functions --- plugins/BossKeyPlus/src/BossKeyIdle.cpp | 3 +-- plugins/CrashDumper/src/dumper.cpp | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/BossKeyPlus/src/BossKeyIdle.cpp b/plugins/BossKeyPlus/src/BossKeyIdle.cpp index 20d5163410..be04729ef5 100644 --- a/plugins/BossKeyPlus/src/BossKeyIdle.cpp +++ b/plugins/BossKeyPlus/src/BossKeyIdle.cpp @@ -32,9 +32,8 @@ VOID CALLBACK IdleTimer(HWND hwnd, UINT umsg, UINT idEvent, DWORD dwTime); static bool IsUserIdle() { - DWORD dwTick; if (g_wMaskAdv & OPT_HIDEIFMIRIDLE) { - CallService(MS_SYSTEM_GETIDLE, 0, (LPARAM)&dwTick); + DWORD dwTick = Miranda_GetIdle(); return GetTickCount() - dwTick > (minutes * 60 * 1000); } diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index 86e5433a79..8e89470c5b 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -391,9 +391,9 @@ void PrintVersionInfo(CMStringW& buffer, unsigned flags) GetFreeMemoryString(buffer); buffer.Append(L"\r\n"); - wchar_t tszOsVer[200]; - GetOSDisplayString(tszOsVer, _countof(tszOsVer)); - buffer.Append(tszOsVer); + char szOsVer[200]; + OS_GetDisplayString(szOsVer, _countof(szOsVer)); + buffer.Append(_A2T(szOsVer)); buffer.Append(L"\r\n"); GetInternetExplorerVersion(buffer); -- cgit v1.2.3