summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-11 20:26:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-11 20:26:32 +0300
commitfdf7e2c0ebe4cb89753f293fca52a4311a4c6d53 (patch)
tree74bd528b1f5e756db7dc1e634bb381dec687ada9
parent57f367fe12acc07ab0404c794795922600ee9c47 (diff)
useless field MIRANDA_IDLE_INFO::cbSize removed
-rw-r--r--include/m_idle.h2
-rw-r--r--src/core/stdidle/src/idle.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/m_idle.h b/include/m_idle.h
index 203228e030..635fb7a643 100644
--- a/include/m_idle.h
+++ b/include/m_idle.h
@@ -61,7 +61,6 @@ for short idle.*/
struct MIRANDA_IDLE_INFO
{
- int cbSize; // sizeof()
int idleTime; // idle in mins, if zero then disabled
int privacy; // user doesnt want other people seeing anything more than they are idle
int aaStatus; // status to go to when user is auto away
@@ -74,7 +73,6 @@ struct MIRANDA_IDLE_INFO
__forceinline int Idle_GetInfo(MIRANDA_IDLE_INFO &pInfo)
{
- pInfo.cbSize = sizeof(MIRANDA_IDLE_INFO);
return CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&pInfo);
}
diff --git a/src/core/stdidle/src/idle.cpp b/src/core/stdidle/src/idle.cpp
index dfb2786f56..64974bff02 100644
--- a/src/core/stdidle/src/idle.cpp
+++ b/src/core/stdidle/src/idle.cpp
@@ -116,7 +116,7 @@ void CALLBACK IdleTimer(HWND, UINT, UINT_PTR idEvent, DWORD)
static INT_PTR IdleGetInfo(WPARAM, LPARAM lParam)
{
MIRANDA_IDLE_INFO *mii = (MIRANDA_IDLE_INFO*)lParam;
- if (!mii || mii->cbSize != sizeof(MIRANDA_IDLE_INFO))
+ if (!mii)
return 1;
mii->idleTime = S.iIdleTime1st;