Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2ae20e45
Commit
2ae20e45
authored
Aug 19, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add test for INT and UINT property return values.
parent
c8c839a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+41
-1
tmarshal.idl
dlls/oleaut32/tests/tmarshal.idl
+6
-0
tmarshal_dispids.h
dlls/oleaut32/tests/tmarshal_dispids.h
+2
-0
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
2ae20e45
...
...
@@ -562,6 +562,22 @@ static HRESULT WINAPI Widget_get_prop_with_lcid(
return
S_OK
;
}
static
HRESULT
WINAPI
Widget_get_prop_int
(
IWidget
*
iface
,
INT
*
i
)
{
trace
(
"get_prop_int(%p)
\n
"
,
i
);
*
i
=
-
13
;
return
S_OK
;
}
static
HRESULT
WINAPI
Widget_get_prop_uint
(
IWidget
*
iface
,
UINT
*
i
)
{
trace
(
"get_prop_uint(%p)
\n
"
,
i
);
*
i
=
42
;
return
S_OK
;
}
static
const
struct
IWidgetVtbl
Widget_VTable
=
{
Widget_QueryInterface
,
...
...
@@ -591,7 +607,9 @@ static const struct IWidgetVtbl Widget_VTable =
Widget_Error
,
Widget_CloneInterface
,
Widget_put_prop_with_lcid
,
Widget_get_prop_with_lcid
Widget_get_prop_with_lcid
,
Widget_get_prop_int
,
Widget_get_prop_uint
};
static
HRESULT
WINAPI
StaticWidget_QueryInterface
(
IStaticWidget
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
...
...
@@ -1299,6 +1317,28 @@ todo_wine
}
VariantClear
(
&
varresult
);
/* test propget of INT value */
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
rgvarg
=
NULL
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
hr
=
IDispatch_Invoke
(
pDispatch
,
DISPID_TM_PROP_INT
,
&
IID_NULL
,
0x40c
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
&
excepinfo
,
NULL
);
ok_ole_success
(
hr
,
ITypeInfo_Invoke
);
todo_wine
ok
(
V_VT
(
&
varresult
)
==
VT_I4
,
"got %x
\n
"
,
V_VT
(
&
varresult
));
ok
(
V_I4
(
&
varresult
)
==
-
13
,
"got %x
\n
"
,
V_I4
(
&
varresult
));
VariantClear
(
&
varresult
);
/* test propget of INT value */
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
rgvarg
=
NULL
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
hr
=
IDispatch_Invoke
(
pDispatch
,
DISPID_TM_PROP_UINT
,
&
IID_NULL
,
0x40c
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
&
excepinfo
,
NULL
);
ok_ole_success
(
hr
,
ITypeInfo_Invoke
);
todo_wine
ok
(
V_VT
(
&
varresult
)
==
VT_UI4
,
"got %x
\n
"
,
V_VT
(
&
varresult
));
ok
(
V_UI4
(
&
varresult
)
==
42
,
"got %x
\n
"
,
V_UI4
(
&
varresult
));
VariantClear
(
&
varresult
);
IDispatch_Release
(
pDispatch
);
IWidget_Release
(
pWidget
);
...
...
dlls/oleaut32/tests/tmarshal.idl
View file @
2ae20e45
...
...
@@ -131,6 +131,12 @@ library TestTypelib
[
id
(
DISPID_TM_PROP_WITH_LCID
),
propget
]
HRESULT
prop_with_lcid
(
[
in
,
lcid
]
long
lcid
,
[
out
,
retval
]
INT
*
i
)
;
[
id
(
DISPID_TM_PROP_INT
),
propget
]
HRESULT
prop_int
(
[
out
,
retval
]
INT
*
i
)
;
[
id
(
DISPID_TM_PROP_UINT
),
propget
]
HRESULT
prop_uint
(
[
out
,
retval
]
UINT
*
i
)
;
}
[
...
...
dlls/oleaut32/tests/tmarshal_dispids.h
View file @
2ae20e45
...
...
@@ -35,5 +35,7 @@
#define DISPID_TM_TESTDUAL 16
#define DISPID_TM_STRUCTARGS 17
#define DISPID_TM_PROP_WITH_LCID 18
#define DISPID_TM_PROP_INT 19
#define DISPID_TM_PROP_UINT 20
#define DISPID_NOA_BSTRRET 1
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