[PATCH 05/16] includes: Fix IsEqualPropertyKey
Maarten Lankhorst
m.b.lankhorst at gmail.com
Fri Jan 29 14:51:41 CST 2010
---
include/propkeydef.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/propkeydef.h b/include/propkeydef.h
index 2a45984..3efe9fd 100644
--- a/include/propkeydef.h
+++ b/include/propkeydef.h
@@ -48,7 +48,11 @@
#endif
#ifndef IsEqualPropertyKey
+#ifdef __cplusplus
#define IsEqualPropertyKey(a,b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid,(b).fmtid))
+#else
+#define IsEqualPropertyKey(a,b) (((a)->pid == (b)->pid) && IsEqualIID(&(a)->fmtid,&(b)->fmtid))
+#endif
#endif
#ifndef _PROPERTYKEY_EQUALITY_OPERATORS_
--
1.7.0
--------------020702020107050802050804--
More information about the wine-patches
mailing list