Changeset 275


Ignore:
Timestamp:
Nov 2, 2009, 12:58:41 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty: os2/xsystray: Few more typos.

Location:
trunk/src/3rdparty/os2/xsystray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/os2/xsystray/xsystray.c

    r274 r275  
    394394    PNOTIFYDATA pData;
    395395
    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));
    398398
    399399    if (!pIconData->bMemoryPoolGiven)
     
    450450    LOGF(("ulCurr        %p\n", ulCurr));
    451451
     452
     453
     454
    452455    // advance to the next possibly free block
    453456    ulCurr += sizeof(MEMPOOLBLK);
     
    459462    __atomic_cmpxchg32((uint32_t *)&pHdr->ulNext, ulCurr, ulNext);
    460463
    461     pData = &((PMEMPOOLBLK)ulCurr)->NotifyData;
    462     memset(pData, sizeof(*pData), 0);
     464   
     465    memset(pData, );
    463466
    464467    pData->msg = pIconData->ulMsgId;
     
    778781    }
    779782
    780     PostNotifyMsg(pSysTrayData, hwnd, pNotifyData);
     783    PostNotifyMsg(pSysTrayData, hwnd, pNotifyData);
    781784
    782785    return TRUE;
     
    868871
    869872            // initialize the SYSTRAYDATA structure
    870             memset(pSysTrayData, sizeof(*pSysTrayData), 0);
     873            memset(pSysTrayData, );
    871874            pSysTrayData->lIconWidth = WinQuerySysValue(HWND_DESKTOP, SV_CXICON) / 2;
    872875            pSysTrayData->lIconHeight = WinQuerySysValue(HWND_DESKTOP, SV_CYICON) / 2;
     
    11541157
    11551158                pData = &pSysTrayData->pIcons[i];
    1156                 memset(pData, sizeof(*pData), 0);
     1159                memset(pData, );
    11571160
    11581161                pData->hwnd = pCtlData->hwndSender;
     
    12571260                    {
    12581261                        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);
    12611265                    }
    12621266                    ++pMemPoolBlk;
  • trunk/src/3rdparty/os2/xsystray/xsystray.h

    r273 r275  
    118118 *                                          FreeNotifyDataPtr() call)
    119119 *
     120
     121
     122
    120123 *      NOTE: When you change the size of this structure, you may also need to
    121124 *      change SERVER_MEMORYPOOL_SIZE value in xsystray.c (see the comments
Note: See TracChangeset for help on using the changeset viewer.