Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dba91c06
Commit
dba91c06
authored
Mar 02, 2010
by
Huw Davies
Committed by
Alexandre Julliard
Mar 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add a test for non-oleautomation error handling.
parent
75ec82bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+19
-0
tmarshal.idl
dlls/oleaut32/tests/tmarshal.idl
+3
-0
tmarshal_dispids.h
dlls/oleaut32/tests/tmarshal_dispids.h
+1
-0
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
dba91c06
...
...
@@ -895,12 +895,18 @@ static BSTR WINAPI NonOleAutomation_BstrRet(INonOleAutomation *iface)
return
SysAllocString
(
wszTestString
);
}
static
HRESULT
WINAPI
NonOleAutomation_Error
(
INonOleAutomation
*
iface
)
{
return
E_NOTIMPL
;
}
static
INonOleAutomationVtbl
NonOleAutomation_VTable
=
{
NonOleAutomation_QueryInterface
,
NonOleAutomation_AddRef
,
NonOleAutomation_Release
,
NonOleAutomation_BstrRet
,
NonOleAutomation_Error
};
static
INonOleAutomation
NonOleAutomation
=
{
&
NonOleAutomation_VTable
};
...
...
@@ -1239,6 +1245,19 @@ static void test_typelibmarshal(void)
ok
(
V_BSTR
(
&
varresult
)
!=
NULL
,
"V_BSTR(&varresult) should not be NULL
\n
"
);
VariantClear
(
&
varresult
);
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
NULL
;
hr
=
ITypeInfo_Invoke
(
pTypeInfo
,
&
NonOleAutomation
,
DISPID_NOA_ERROR
,
DISPATCH_METHOD
,
&
dispparams
,
&
varresult
,
&
excepinfo
,
NULL
);
ok
(
hr
==
DISP_E_EXCEPTION
,
"ITypeInfo_Invoke should have returned DISP_E_EXCEPTION instead of 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
varresult
)
==
VT_EMPTY
,
"V_VT(&varresult) should be VT_EMPTY instead of %d
\n
"
,
V_VT
(
&
varresult
));
ok
(
excepinfo
.
wCode
==
0x0
&&
excepinfo
.
scode
==
E_NOTIMPL
,
"EXCEPINFO differs from expected: wCode = 0x%x, scode = 0x%08x
\n
"
,
excepinfo
.
wCode
,
excepinfo
.
scode
);
VariantClear
(
&
varresult
);
ITypeInfo_Release
(
pTypeInfo
);
/* tests call put_Name without named arg */
...
...
dlls/oleaut32/tests/tmarshal.idl
View file @
dba91c06
...
...
@@ -184,6 +184,9 @@ library TestTypelib
{
[
id
(
DISPID_NOA_BSTRRET
)
]
BSTR
BstrRet
()
;
[
id
(
DISPID_NOA_ERROR
)
]
HRESULT
Error
()
;
}
...
...
dlls/oleaut32/tests/tmarshal_dispids.h
View file @
dba91c06
...
...
@@ -40,3 +40,4 @@
#define DISPID_TM_BYREF_UINT 21
#define DISPID_NOA_BSTRRET 1
#define DISPID_NOA_ERROR 2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment