oleaut32 [5/10]: Add a proxy for unknwn.

Dan Hipschman dsh at linux.ucla.edu
Mon Oct 29 21:21:35 CDT 2007


Adds a proxy for unknwn.idl.

---
 .gitignore                        |    2 ++
 dlls/oleaut32/Makefile.in         |    3 ++-
 dlls/oleaut32/oleaut32_unknwn.idl |   25 +++++++++++++++++++++++++
 dlls/oleaut32/usrmarshal.c        |    2 ++
 4 files changed, 31 insertions(+), 1 deletions(-)
 create mode 100644 dlls/oleaut32/oleaut32_unknwn.idl

diff --git a/.gitignore b/.gitignore
index 6ec2cce..ddbcb17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -342,6 +342,8 @@ dlls/oleaut32/oleaut32_oaidl.h
 dlls/oleaut32/oleaut32_oaidl_p.c
 dlls/oleaut32/oleaut32_objidl.h
 dlls/oleaut32/oleaut32_objidl_p.c
+dlls/oleaut32/oleaut32_unknwn.h
+dlls/oleaut32/oleaut32_unknwn_p.c
 dlls/oleaut32/tests/*.ok
 dlls/oleaut32/tests/oleaut32_crosstest.exe
 dlls/oleaut32/tests/test_tlb.tlb
diff --git a/dlls/oleaut32/Makefile.in b/dlls/oleaut32/Makefile.in
index 2cf6374..2c6c2a2 100644
--- a/dlls/oleaut32/Makefile.in
+++ b/dlls/oleaut32/Makefile.in
@@ -41,7 +41,8 @@ RC_SRCS = oleaut32.rc
 
 IDL_P_SRCS = \
 	oleaut32_oaidl.idl \
-	oleaut32_objidl.idl
+	oleaut32_objidl.idl \
+	oleaut32_unknwn.idl
 
 @MAKE_DLL_RULES@
 
diff --git a/dlls/oleaut32/oleaut32_unknwn.idl b/dlls/oleaut32/oleaut32_unknwn.idl
new file mode 100644
index 0000000..a63f156
--- /dev/null
+++ b/dlls/oleaut32/oleaut32_unknwn.idl
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2007 Google (Dan Hipschman)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/* The header file generated from this includes rpc.h, which ends up
+   including unknwn.h at some point.  This will cause all sorts of errors
+   so the easiest thing to do is just comment out our entire header.  */
+
+cpp_quote("#if 0    /* oleaut32_unknwn.idl hack */")
+#include "unknwn.idl"
+cpp_quote("#endif   /* oleaut32_unknwn.idl hack */")
diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c
index 4a5cc41..5caa310 100644
--- a/dlls/oleaut32/usrmarshal.c
+++ b/dlls/oleaut32/usrmarshal.c
@@ -51,10 +51,12 @@ CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
 
 extern const ExtendedProxyFileInfo oleaut32_oaidl_ProxyFileInfo;
 extern const ExtendedProxyFileInfo oleaut32_objidl_ProxyFileInfo;
+extern const ExtendedProxyFileInfo oleaut32_unknwn_ProxyFileInfo;
 
 static const ProxyFileInfo *OLEAUT32_ProxyFileList[] = {
   &oleaut32_oaidl_ProxyFileInfo,
   &oleaut32_objidl_ProxyFileInfo,
+  &oleaut32_unknwn_ProxyFileInfo,
   NULL
 };
 



More information about the wine-patches mailing list