Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
297 B

  1. // OLE helper macros and definitions for container support
  2. #ifndef _OLE_MISC_H
  3. #define _OLE_MISC_H
  4. #define SAFE_RELEASE(pObject) \
  5. if ((pObject) != NULL) \
  6. { \
  7. (pObject)->Release(); \
  8. (pObject) = NULL; \
  9. } \
  10. else \
  11. { \
  12. TRACE(_T("Releasing of NULL pointer ignored!\n")); \
  13. } \
  14. #endif