Zebediah Figura : rpcrt4: Abort if an interface is passed directly to write_type_tfs().

Alexandre Julliard julliard at winehq.org
Mon Apr 1 16:32:03 CDT 2019


Module: wine
Branch: master
Commit: 81745dfd082cc9156c3b1d5d04d05cabc90a9998
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=81745dfd082cc9156c3b1d5d04d05cabc90a9998

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Mar 31 23:31:16 2019 -0500

rpcrt4: Abort if an interface is passed directly to write_type_tfs().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rpcrt4/ndr_typelib.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/rpcrt4/ndr_typelib.c b/dlls/rpcrt4/ndr_typelib.c
index 963a119..c756682 100644
--- a/dlls/rpcrt4/ndr_typelib.c
+++ b/dlls/rpcrt4/ndr_typelib.c
@@ -497,6 +497,11 @@ static size_t write_type_tfs(ITypeInfo *typeinfo, unsigned char *str,
         case TKIND_RECORD:
             off = write_struct_tfs(refinfo, str, len, attr);
             break;
+        case TKIND_INTERFACE:
+        case TKIND_DISPATCH:
+        case TKIND_COCLASS:
+            assert(0);
+            break;
         case TKIND_ALIAS:
             off = write_type_tfs(refinfo, str, len, &attr->tdescAlias, toplevel, onstack);
             break;




More information about the wine-cvs mailing list