mirror of https://github.com/tongzx/nt5src
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.
17 lines
297 B
17 lines
297 B
// 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
|