Changeset 951 for trunk/src/3rdparty/os2/xsystray/apilib/xsystray.c
- Timestamp:
- Aug 9, 2011, 10:34:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/apilib/xsystray.c
r841 r951 316 316 317 317 // give all processes temporary access to hIcon 318 brc = WinSetPointerOwner(hIcon, 0, FALSE);318 brc = ; 319 319 if (brc) 320 320 { … … 340 340 341 341 // revoke temporary access to hIcon 342 DosGetInfoBlocks(NULL, &ppib); 343 WinSetPointerOwner(hIcon, ppib->pib_ulpid, TRUE); 342 if (hIcon != NULLHANDLE) 343 { 344 DosGetInfoBlocks(NULL, &ppib); 345 WinSetPointerOwner(hIcon, ppib->pib_ulpid, TRUE); 346 } 344 347 } 345 348 … … 402 405 403 406 // give all processes temporary access to hIcon 404 brc = WinSetPointerOwner(hIcon, 0, FALSE);407 brc = ; 405 408 if (brc) 406 409 { … … 414 417 415 418 // revoke temporary access to hIcon 416 DosGetInfoBlocks(NULL, &ppib); 417 WinSetPointerOwner(hIcon, ppib->pib_ulpid, TRUE); 419 if (hIcon != NULLHANDLE) 420 { 421 DosGetInfoBlocks(NULL, &ppib); 422 WinSetPointerOwner(hIcon, ppib->pib_ulpid, TRUE); 423 } 418 424 } 419 425
Note:
See TracChangeset
for help on using the changeset viewer.