diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-30 18:33:56 +0000 |
commit | 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (patch) | |
tree | ded36ec10c55fb5d33c8d2e471ec808eeb058a04 /plugins/SMS/src/AdditionalFunctions/ListMT.h | |
parent | 237d02ebbabbedfb8b33160ebfb5250bbd491eca (diff) |
Fix buf size for Get/Set text, open/save file name
SMS: SIZE_T -> size_t
MRA: small code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SMS/src/AdditionalFunctions/ListMT.h')
-rw-r--r-- | plugins/SMS/src/AdditionalFunctions/ListMT.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SMS/src/AdditionalFunctions/ListMT.h b/plugins/SMS/src/AdditionalFunctions/ListMT.h index 76fd432d6d..04f2552aaf 100644 --- a/plugins/SMS/src/AdditionalFunctions/ListMT.h +++ b/plugins/SMS/src/AdditionalFunctions/ListMT.h @@ -20,7 +20,7 @@ typedef CONST PLIST_MT_ITEM PCLIST_MT_ITEM, LPCLIST_MT_ITEM; // структура для работы со списком, заголовок списка
typedef struct _LIST_MT
{
- SIZE_T nCount; // *колличество элементов в списке
+ size_t nCount; // *колличество элементов в списке
PLIST_MT_ITEM plmtiFirst; // *указывает на первый элемент в списке
PLIST_MT_ITEM plmtiLast; // *указывает на последний элемент в списке
CRITICAL_SECTION cs; // *section for exclysive access to List
@@ -92,15 +92,15 @@ __inline void ListMTUnLock(PCLIST_MT pclmtListMT) }
-__inline SIZE_T ListMTGetCount(PCLIST_MT pclmtListMT)
+__inline size_t ListMTGetCount(PCLIST_MT pclmtListMT)
{
- return((SIZE_T)InterlockedCompareExchangePointer((LPVOID*)&pclmtListMT->nCount,NULL,NULL));
+ return((size_t)InterlockedCompareExchangePointer((LPVOID*)&pclmtListMT->nCount,NULL,NULL));
}
-__inline SIZE_T ListMTItemAdd(PCLIST_MT pclmtListMT,PCLIST_MT_ITEM pclmtListMTItem,LPVOID lpData)
+__inline size_t ListMTItemAdd(PCLIST_MT pclmtListMT,PCLIST_MT_ITEM pclmtListMTItem,LPVOID lpData)
{
- SIZE_T dwRet=(SIZE_T)InterlockedIncrementPointer(&pclmtListMT->nCount);//pclmtListMT->nCount++;
+ size_t dwRet=(size_t)InterlockedIncrementPointer(&pclmtListMT->nCount);//pclmtListMT->nCount++;
pclmtListMTItem->lpData=lpData;
pclmtListMTItem->lpListMT=pclmtListMT;
|