diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-01 11:21:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-01 11:21:13 +0000 |
commit | 0f84c762b6cfcc5571d4c9b9c97726fc6cb4ad2c (patch) | |
tree | 0a775bae27d67e51402a7873a398484f263698d9 /protocols/MRA | |
parent | 47697127cec34eac8e141f62ccf1f6c173592bec (diff) |
SetStatus code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1739 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA')
-rw-r--r-- | protocols/MRA/MraProto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/MRA/MraProto.cpp b/protocols/MRA/MraProto.cpp index fc82af9785..3a83c98af5 100644 --- a/protocols/MRA/MraProto.cpp +++ b/protocols/MRA/MraProto.cpp @@ -615,7 +615,7 @@ int CMraProto::SetStatus(int iNewStatus) }
// nothing to change
- if (InterlockedExchangeAdd((volatile LONG*)&m_iStatus, 0) == iNewStatus && iNewStatus != m_iDesiredStatus)
+ if (m_iStatus == iNewStatus)
return 0;
DWORD dwOldStatusMode;
|