Changeset 275
- Timestamp:
- Nov 2, 2009, 12:58:41 PM (16 years ago)
- Location:
- trunk/src/3rdparty/os2/xsystray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/xsystray.c
r274 r275 394 394 PNOTIFYDATA pData; 395 395 396 LOGF(("pvMemoryPool %p\n", pvMemoryPool));397 LOGF(("hwnd %p\n", pIconData->hwnd));396 LOGF(("pvMemoryPool %p\n", pvMemoryPool)); 397 LOGF(("hwnd \n", pIconData->hwnd)); 398 398 399 399 if (!pIconData->bMemoryPoolGiven) … … 450 450 LOGF(("ulCurr %p\n", ulCurr)); 451 451 452 453 454 452 455 // advance to the next possibly free block 453 456 ulCurr += sizeof(MEMPOOLBLK); … … 459 462 __atomic_cmpxchg32((uint32_t *)&pHdr->ulNext, ulCurr, ulNext); 460 463 461 pData = &((PMEMPOOLBLK)ulCurr)->NotifyData;462 memset(pData, sizeof(*pData), 0);464 465 memset(pData, ); 463 466 464 467 pData->msg = pIconData->ulMsgId; … … 778 781 } 779 782 780 PostNotifyMsg(pSysTrayData, hwnd, pNotifyData);783 PostNotifyMsg(pSysTrayData, hwnd, pNotifyData); 781 784 782 785 return TRUE; … … 868 871 869 872 // initialize the SYSTRAYDATA structure 870 memset(pSysTrayData, sizeof(*pSysTrayData), 0);873 memset(pSysTrayData, ); 871 874 pSysTrayData->lIconWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXICON) / 2; 872 875 pSysTrayData->lIconHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYICON) / 2; … … 1154 1157 1155 1158 pData = &pSysTrayData->pIcons[i]; 1156 memset(pData, sizeof(*pData), 0);1159 memset(pData, ); 1157 1160 1158 1161 pData->hwnd = pCtlData->hwndSender; … … 1257 1260 { 1258 1261 LOGF((" freeing memory block %p\n", pMemPoolBlk)); 1259 __atomic_cmpxchg32((uint32_t *)&pMemPoolBlk->hwnd, 1260 NULLHANDLE, hwnd); 1262 FreeNotifyDataPtr(pSysTrayData->pvMemoryPool, 1263 pData->hwnd, 1264 &pMemPoolBlk->NotifyData); 1261 1265 } 1262 1266 ++pMemPoolBlk; -
trunk/src/3rdparty/os2/xsystray/xsystray.h
r273 r275 118 118 * FreeNotifyDataPtr() call) 119 119 * 120 121 122 120 123 * NOTE: When you change the size of this structure, you may also need to 121 124 * change SERVER_MEMORYPOOL_SIZE value in xsystray.c (see the comments
Note:
See TracChangeset
for help on using the changeset viewer.