WindowsXP-SP1/admin/snapin/corecopy/olemisc.h
2020-09-30 16:53:49 +02:00

17 lines
313 B
C

// OLE helper macros and definitions for container support
#ifndef _OLE_MISC_H
#define _OLE_MISC_H
#define SAFE_RELEASE(pObject) \
if ((pObject) != NULL) \
{ \
(pObject)->Release(); \
(pObject) = NULL; \
} \
else \
{ \
TRACE(_T("Releasing of NULL pointer ignored!\n")); \
} \
#endif