Changeset 278
- Timestamp:
- Nov 2, 2009, 3:24:21 PM (16 years ago)
- Location:
- trunk/src/3rdparty/os2/xsystray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/xsystray.c
r275 r278 431 431 // advance the address (only if nobody has already done so -- they 432 432 // could already commit more than we did) 433 __atomic_cmpxchg32(( uint32_t *)&pHdr->ulNeedsCommit,433 __atomic_cmpxchg32((uint32_t *)&pHdr->ulNeedsCommit, 434 434 ulNeedsCommit + 4096, ulNeedsCommit); 435 435 } 436 436 437 if (__atomic_cmpxchg32((uint32_t *)ulCurr, pIconData->hwnd, NULLHANDLE)) 437 if (__atomic_cmpxchg32((volatile uint32_t *)ulCurr, 438 pIconData->hwnd, NULLHANDLE)) 438 439 break; 439 440 … … 460 461 461 462 // store the new next address until someone else has already done that 462 __atomic_cmpxchg32(( uint32_t *)&pHdr->ulNext, ulCurr, ulNext);463 __atomic_cmpxchg32((uint32_t *)&pHdr->ulNext, ulCurr, ulNext); 463 464 464 465 // fill in parts of the allocated NOTIFYDATA -
trunk/src/3rdparty/os2/xsystray/xsystray_api.c
r276 r278 88 88 bTriedFind = TRUE; 89 89 HWND hwnd = FindSysTrayServerWindow(); 90 __atomic_cmpxchg32((uint32_t *)&G_hwndSysTray, hwnd, NULLHANDLE); 90 __atomic_cmpxchg32((volatile uint32_t *)&G_hwndSysTray, 91 hwnd, NULLHANDLE); 91 92 if (G_hwndSysTray == NULLHANDLE) 92 93 break; … … 148 149 DOSSUB_INIT | DOSSUB_SPARSE_OBJ, 149 150 CLIENT_MEMORYPOOL_SIZE); 150 if (!__atomic_cmpxchg32(( uint32_t *)&G_pvMemoryPool,151 if (!__atomic_cmpxchg32((uint32_t *)&G_pvMemoryPool, 151 152 (uint32_t)pvPool, (uint32_t)NULL)) 152 153 {
Note:
See TracChangeset
for help on using the changeset viewer.