Juan Lang : wintrust: Add a few missing defines.

Alexandre Julliard julliard at winehq.org
Thu Sep 18 07:55:58 CDT 2008


Module: wine
Branch: master
Commit: 1a1a2187de8c97360fb6bf33060697882d7bfcba
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1a1a2187de8c97360fb6bf33060697882d7bfcba

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Sep 17 16:15:11 2008 -0700

wintrust: Add a few missing defines.

---

 include/wintrust.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/wintrust.h b/include/wintrust.h
index 2e4006b..228d868 100644
--- a/include/wintrust.h
+++ b/include/wintrust.h
@@ -385,6 +385,10 @@ typedef struct _CRYPT_PROVUI_FUNCS {
 
 #include <poppack.h>
 
+#define WVT_OFFSETOF(t,f)     ((ULONG)((ULONG_PTR)(&((t*)0)->f)))
+#define WVT_ISINSTRUCT(t,s,f) (WVT_OFFSETOF(t,f) + sizeof(((t*)0)->f) <= (s))
+#define WVT_IS_CBSTRUCT_GT_MEMBEROFFSET(t,s,f) WVT_ISINSTRUCT(t,s,f)
+
 #define WTPF_TRUSTTEST            0x00000020
 #define WTPF_TESTCANBEVALID       0x00000080
 #define WTPF_IGNOREEXPIRATION     0x00000100




More information about the wine-cvs mailing list