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
7e5a764d
Commit
7e5a764d
authored
Jan 28, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Test default item moniker instance.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70f35c65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
moniker.c
dlls/ole32/tests/moniker.c
+37
-0
No files found.
dlls/ole32/tests/moniker.c
View file @
7e5a764d
...
...
@@ -1311,6 +1311,13 @@ static const BYTE expected_item_moniker_comparison_data5[] =
'S'
,
0x00
,
'T'
,
0x00
,
0x00
,
0x00
,
};
static
const
BYTE
expected_item_moniker_comparison_data6
[]
=
{
0x04
,
0x03
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
,
0x00
,
0x00
,
};
static
const
BYTE
expected_item_moniker_saved_data
[]
=
{
0x02
,
0x00
,
0x00
,
0x00
,
'!'
,
0x00
,
0x05
,
0x00
,
...
...
@@ -1341,6 +1348,12 @@ static const BYTE expected_item_moniker_saved_data5[] =
0x00
,
0x00
,
0x00
,
'T'
,
'e'
,
's'
,
't'
,
0x00
,
};
static
const
BYTE
expected_item_moniker_saved_data6
[]
=
{
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
};
static
const
BYTE
expected_item_moniker_marshal_data
[]
=
{
0x4d
,
0x45
,
0x4f
,
0x57
,
0x04
,
0x00
,
0x00
,
0x00
,
...
...
@@ -1401,6 +1414,18 @@ static const BYTE expected_item_moniker_marshal_data5[] =
0x00
,
0x00
,
0x00
,
'T'
,
'e'
,
's'
,
't'
,
0x00
,
};
static
const
BYTE
expected_item_moniker_marshal_data6
[]
=
{
0x4d
,
0x45
,
0x4f
,
0x57
,
0x04
,
0x00
,
0x00
,
0x00
,
0x0f
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
,
0x04
,
0x03
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
,
0x00
,
0x00
,
0x00
,
0x00
,
0x22
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
};
static
const
BYTE
expected_anti_moniker_marshal_data
[]
=
{
0x4d
,
0x45
,
0x4f
,
0x57
,
0x04
,
0x00
,
0x00
,
0x00
,
...
...
@@ -2239,6 +2264,18 @@ todo_wine
IMoniker_Release
(
moniker
);
IMoniker_Release
(
moniker2
);
}
/* Default instance. */
hr
=
CoCreateInstance
(
&
CLSID_ItemMoniker
,
NULL
,
CLSCTX_SERVER
,
&
IID_IMoniker
,
(
void
**
)
&
moniker
);
ok
(
hr
==
S_OK
,
"Failed to create item moniker, hr %#x.
\n
"
,
hr
);
test_moniker
(
"item moniker 6"
,
moniker
,
expected_item_moniker_marshal_data6
,
sizeof
(
expected_item_moniker_marshal_data6
),
expected_item_moniker_saved_data6
,
sizeof
(
expected_item_moniker_saved_data6
),
expected_item_moniker_comparison_data6
,
sizeof
(
expected_item_moniker_comparison_data6
),
34
,
L""
);
IMoniker_Release
(
moniker
);
}
static
void
stream_write_dword
(
IStream
*
stream
,
DWORD
value
)
...
...
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