Changeset 952
- Timestamp:
- Aug 9, 2011, 11:11:56 PM (14 years ago)
- Location:
- trunk/src/3rdparty/os2/xsystray
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/apilib/xsystray.c
r951 r952 223 223 PVOID pvMemoryPool = (PVOID)pQmsg->mp2; 224 224 225 // copy NOTIFYDATA and free it225 // 1) create a local copy of NOTIFYDATA 226 226 NOTIFYDATA NotifyData = *pNotifyData; 227 // 2) fix the mp2 pointer in it (which is always to one of u's structs) 228 NotifyData.mp2 -= (ULONG)pNotifyData; 229 NotifyData.mp2 += (ULONG)&NotifyData; 230 // 3) free the original to let it be reused by other processes ASAP 227 231 FreeNotifyDataPtr(pvMemoryPool, pQmsg->hwnd, pNotifyData); 228 232 -
trunk/src/3rdparty/os2/xsystray/plugin/w_xsystray.h
r842 r952 173 173 // ID of the message that is to be sent to the target window 174 174 MPARAM mp1; 175 // message parameter ( usually:USHORT usIconId, USHORT usNotifyCode)175 // message parameter (USHORT usIconId, USHORT usNotifyCode) 176 176 MPARAM mp2; 177 // message parameter ( usually,a pointer to a struct from the union)177 // message parameter (a pointer to a struct from the union) 178 178 union 179 179 { … … 210 210 * 211 211 * See AllocNotifyDataPtr() for more details about allocating these 212 * structures. dd212 * structures. 213 213 */ 214 214
Note:
See TracChangeset
for help on using the changeset viewer.