summaryrefslogtreecommitdiff
path: root/plugins/SMS/src/AdditionalFunctions/ListMT.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-05 13:38:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-05 13:38:59 +0000
commit3cd763c7a9c62bfb1c1dc43246b2199ee9427e92 (patch)
treecc8edc9da30eeda76be402bd940f35acbd0e1c97 /plugins/SMS/src/AdditionalFunctions/ListMT.h
parent8860a0297c57d8c5fe3e6ddaef64ee6780ea116b (diff)
64-bit compatibility fixes for the SMS plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@2979 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SMS/src/AdditionalFunctions/ListMT.h')
-rw-r--r--plugins/SMS/src/AdditionalFunctions/ListMT.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SMS/src/AdditionalFunctions/ListMT.h b/plugins/SMS/src/AdditionalFunctions/ListMT.h
index fd9ab3baaf..7d7884ec66 100644
--- a/plugins/SMS/src/AdditionalFunctions/ListMT.h
+++ b/plugins/SMS/src/AdditionalFunctions/ListMT.h
@@ -67,7 +67,7 @@ __inline DWORD ListMTInitialize(PCLIST_MT pclmtListMT,DWORD dwSpinCount)
if (TRUE)
#endif
{
- InterlockedExchangePointer(&pclmtListMT->nCount,NULL);
+ InterlockedExchangePointer((volatile PVOID*)&pclmtListMT->nCount,NULL);
pclmtListMT->plmtiFirst=NULL;
pclmtListMT->plmtiLast=NULL;
dwRetErrorCode=NO_ERROR;
@@ -80,7 +80,7 @@ return(dwRetErrorCode);
__inline void ListMTDestroy(PCLIST_MT pclmtListMT)
{
- InterlockedExchangePointer(&pclmtListMT->nCount,NULL);
+ InterlockedExchangePointer((volatile PVOID*)&pclmtListMT->nCount,NULL);
pclmtListMT->plmtiFirst=NULL;
pclmtListMT->plmtiLast=NULL;
DeleteCriticalSection(&pclmtListMT->cs);