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
15bc45a5
Commit
15bc45a5
authored
Aug 25, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Test for OleRegGetMiscStatus() redirection behaviour.
parent
04bf2009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
compobj.c
dlls/ole32/tests/compobj.c
+30
-0
No files found.
dlls/ole32/tests/compobj.c
View file @
15bc45a5
...
...
@@ -220,9 +220,12 @@ static const char actctx_manifest[] =
" <comClass description=
\"
Test com class
\"
"
" clsid=
\"
{12345678-1234-1234-1234-56789abcdef0}
\"
"
" progid=
\"
ProgId.ProgId
\"
"
" miscStatusIcon=
\"
recomposeonresize
\"
"
" />"
" <comClass clsid=
\"
{0be35203-8f91-11ce-9de3-00aa004bb851}
\"
"
" progid=
\"
CustomFont
\"
"
" miscStatusIcon=
\"
recomposeonresize
\"
"
" miscStatusContent=
\"
insideout
\"
"
" />"
" <comClass clsid=
\"
{0be35203-8f91-11ce-9de3-00aa004bb852}
\"
"
" progid=
\"
StdFont
\"
"
...
...
@@ -230,6 +233,8 @@ static const char actctx_manifest[] =
"</file>"
"</assembly>"
;
DEFINE_GUID
(
CLSID_Testclass
,
0x12345678
,
0x1234
,
0x1234
,
0x12
,
0x34
,
0x56
,
0x78
,
0x9a
,
0xbc
,
0xde
,
0xf0
);
static
void
test_ProgIDFromCLSID
(
void
)
{
ULONG_PTR
cookie
=
0
;
...
...
@@ -1720,6 +1725,30 @@ static void test_CoInitializeEx(void)
OleUninitialize
();
}
static
void
test_OleRegGetMiscStatus
(
void
)
{
ULONG_PTR
cookie
;
HANDLE
handle
;
DWORD
status
;
HRESULT
hr
;
hr
=
OleRegGetMiscStatus
(
&
CLSID_Testclass
,
DVASPECT_ICON
,
&
status
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"got 0x%08x
\n
"
,
hr
);
if
((
handle
=
activate_context
(
actctx_manifest
,
&
cookie
)))
{
status
=
0
;
hr
=
OleRegGetMiscStatus
(
&
CLSID_Testclass
,
DVASPECT_ICON
,
&
status
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
status
==
OLEMISC_RECOMPOSEONRESIZE
,
"got 0x%08x
\n
"
,
status
);
}
pDeactivateActCtx
(
0
,
cookie
);
pReleaseActCtx
(
handle
);
}
}
static
void
init_funcs
(
void
)
{
HMODULE
hOle32
=
GetModuleHandleA
(
"ole32"
);
...
...
@@ -1771,4 +1800,5 @@ START_TEST(compobj)
test_CoGetContextToken
();
test_CoGetTreatAsClass
();
test_CoInitializeEx
();
test_OleRegGetMiscStatus
();
}
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