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
17a30ff2
Commit
17a30ff2
authored
Jan 10, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Test the return value of the remote IWidget_StructArgs call.
parent
ea00dc4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+11
-4
tmarshal.idl
dlls/oleaut32/tests/tmarshal.idl
+3
-3
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
17a30ff2
...
...
@@ -546,7 +546,7 @@ static HRESULT WINAPI Widget_VariantArrayPtr(
return
S_OK
;
}
static
void
WINAPI
Widget_Variant
(
static
HRESULT
WINAPI
Widget_Variant
(
IWidget
__RPC_FAR
*
iface
,
VARIANT
var
)
{
...
...
@@ -554,9 +554,10 @@ static void WINAPI Widget_Variant(
ok
(
V_VT
(
&
var
)
==
VT_CY
,
"V_VT(&var) was %d
\n
"
,
V_VT
(
&
var
));
ok
(
S
(
V_CY
(
&
var
)).
Hi
==
0xdababe
,
"V_CY(&var).Hi was 0x%x
\n
"
,
S
(
V_CY
(
&
var
)).
Hi
);
ok
(
S
(
V_CY
(
&
var
)).
Lo
==
0xdeadbeef
,
"V_CY(&var).Lo was 0x%x
\n
"
,
S
(
V_CY
(
&
var
)).
Lo
);
return
S_OK
;
}
static
void
WINAPI
Widget_VarArg
(
static
HRESULT
WINAPI
Widget_VarArg
(
IWidget
*
iface
,
int
numexpect
,
SAFEARRAY
*
values
)
...
...
@@ -586,9 +587,11 @@ static void WINAPI Widget_VarArg(
hr
=
SafeArrayUnaccessData
(
values
);
ok
(
hr
==
S_OK
,
"SafeArrayUnaccessData failed with %x
\n
"
,
hr
);
return
S_OK
;
}
static
void
WINAPI
Widget_StructArgs
(
static
HRESULT
WINAPI
Widget_StructArgs
(
IWidget
*
iface
,
MYSTRUCT
byval
,
MYSTRUCT
*
byptr
,
...
...
@@ -597,6 +600,7 @@ static void WINAPI Widget_StructArgs(
ok
(
memcmp
(
&
byval
,
&
MYSTRUCT_BYVAL
,
sizeof
(
MYSTRUCT
))
==
0
,
"Struct parameter passed by value corrupted
\n
"
);
ok
(
memcmp
(
byptr
,
&
MYSTRUCT_BYPTR
,
sizeof
(
MYSTRUCT
))
==
0
,
"Struct parameter passed by pointer corrupted
\n
"
);
ok
(
memcmp
(
arr
,
MYSTRUCT_ARRAY
,
sizeof
(
MYSTRUCT_ARRAY
))
==
0
,
"Array of structs corrupted
\n
"
);
return
S_OK
;
}
...
...
@@ -1102,7 +1106,10 @@ static void test_typelibmarshal(void)
/* call StructArgs (direct) */
mystruct
=
MYSTRUCT_BYPTR
;
memcpy
(
mystructArray
,
MYSTRUCT_ARRAY
,
sizeof
(
mystructArray
));
IWidget_StructArgs
(
pWidget
,
MYSTRUCT_BYVAL
,
&
mystruct
,
mystructArray
);
hr
=
IWidget_StructArgs
(
pWidget
,
MYSTRUCT_BYVAL
,
&
mystruct
,
mystructArray
);
todo_wine
{
ok_ole_success
(
hr
,
IWidget_StructArgs
);
}
/* call Clone */
dispparams
.
cNamedArgs
=
0
;
...
...
dlls/oleaut32/tests/tmarshal.idl
View file @
17a30ff2
...
...
@@ -112,13 +112,13 @@ library TestTypelib
HRESULT
VariantArrayPtr
(
[
in
]
SAFEARRAY
(
VARIANT
)
*
values
)
;
[
id
(
DISPID_TM_VARIANT
)
]
void
Variant
(
[
in
]
VARIANT
var
)
;
HRESULT
Variant
(
[
in
]
VARIANT
var
)
;
[
vararg
,
id
(
DISPID_TM_VARARG
)
]
void
VarArg
(
[
in
]
int
numexpect
,
[
in
]
SAFEARRAY
(
VARIANT
)
values
)
;
HRESULT
VarArg
(
[
in
]
int
numexpect
,
[
in
]
SAFEARRAY
(
VARIANT
)
values
)
;
[
id
(
DISPID_TM_STRUCTARGS
)
]
void
StructArgs
(
[
in
]
MYSTRUCT
byval
,
[
in
]
MYSTRUCT
*
byptr
,
[
in
]
MYSTRUCT
arr
[
5
]
)
;
HRESULT
StructArgs
(
[
in
]
MYSTRUCT
byval
,
[
in
]
MYSTRUCT
*
byptr
,
[
in
]
MYSTRUCT
arr
[
5
]
)
;
[
id
(
DISPID_TM_ERROR
)
]
HRESULT
Error
()
;
...
...
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