oleaut32: Don't crash in wrapper if variant resides in read-only memory.
[wine] / dlls / oleaut32 / tests / test_tlb.idl
1 /*
2  * ITypeLib test IDL - we dump it and compare results in typelib.c
3  *
4  * Copyright 2007 Google (Mikolaj Zalewski)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 import "oaidl.idl"; /* needed by widl */
22
23 [uuid(8b05fe77-4a6c-4133-b9cd-8f81747af784)]
24 library Test
25 {
26         importlib("stdole2.tlb");
27
28         [dual,uuid(b14b6bb5-904e-4ff9-b247-bd361f7aaedd)]
29         interface IDualIface : IDispatch
30         {
31                 HRESULT test();
32         }
33
34         [uuid(ec5dfcd6-eeb0-4cd6-b51e-8030e1dac009)]
35         interface ISimpleIface : IDispatch
36         {
37                 HRESULT test();
38         }
39 }