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
0bdd0465
Commit
0bdd0465
authored
Jan 25, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl100/tests: Use common wine_dbgstr_guid implementation from test.h.
parent
1b271735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
atl.c
dlls/atl100/tests/atl.c
+7
-22
No files found.
dlls/atl100/tests/atl.c
View file @
0bdd0465
...
...
@@ -43,21 +43,6 @@ static const GUID CATID_CatTest2 =
{
0x178fc163
,
0x0000
,
0x0000
,{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x46
}};
#define CATID_CATTEST2_STR "178fc163-0000-0000-0000-000000000246"
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
static
char
buf
[
50
];
if
(
!
riid
)
return
"(null)"
;
sprintf
(
buf
,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
riid
->
Data1
,
riid
->
Data2
,
riid
->
Data3
,
riid
->
Data4
[
0
],
riid
->
Data4
[
1
],
riid
->
Data4
[
2
],
riid
->
Data4
[
3
],
riid
->
Data4
[
4
],
riid
->
Data4
[
5
],
riid
->
Data4
[
6
],
riid
->
Data4
[
7
]);
return
buf
;
}
static
void
test_winmodule
(
void
)
{
_AtlCreateWndData
create_data
[
3
];
...
...
@@ -469,7 +454,7 @@ static HRESULT WINAPI Dispatch_QueryInterface(IDispatch *iface, REFIID riid, voi
return
S_OK
;
}
ok
(
0
,
"unexpected riid: %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
0
,
"unexpected riid: %s
\n
"
,
wine_db
gstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -548,8 +533,8 @@ static void test_source_iface(void)
maj_ver
=
min_ver
=
0xdead
;
hres
=
AtlGetObjectSourceInterface
((
IUnknown
*
)
&
Dispatch
,
&
libid
,
&
iid
,
&
maj_ver
,
&
min_ver
);
ok
(
hres
==
S_OK
,
"AtlGetObjectSourceInterface failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
debu
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
DIID_DispHTMLBody
),
"iid = %s
\n
"
,
debu
gstr_guid
(
&
iid
));
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
wine_db
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
DIID_DispHTMLBody
),
"iid = %s
\n
"
,
wine_db
gstr_guid
(
&
iid
));
ok
(
maj_ver
==
4
&&
min_ver
==
0
,
"ver = %d.%d
\n
"
,
maj_ver
,
min_ver
);
support_classinfo2
=
FALSE
;
...
...
@@ -558,8 +543,8 @@ static void test_source_iface(void)
maj_ver
=
min_ver
=
0xdead
;
hres
=
AtlGetObjectSourceInterface
((
IUnknown
*
)
&
Dispatch
,
&
libid
,
&
iid
,
&
maj_ver
,
&
min_ver
);
ok
(
hres
==
S_OK
,
"AtlGetObjectSourceInterface failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
debu
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
DIID_HTMLDocumentEvents
),
"iid = %s
\n
"
,
debu
gstr_guid
(
&
iid
));
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
wine_db
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
DIID_HTMLDocumentEvents
),
"iid = %s
\n
"
,
wine_db
gstr_guid
(
&
iid
));
ok
(
maj_ver
==
4
&&
min_ver
==
0
,
"ver = %d.%d
\n
"
,
maj_ver
,
min_ver
);
persist_clsid
=
CLSID_HTMLStyle
;
...
...
@@ -567,8 +552,8 @@ static void test_source_iface(void)
maj_ver
=
min_ver
=
0xdead
;
hres
=
AtlGetObjectSourceInterface
((
IUnknown
*
)
&
Dispatch
,
&
libid
,
&
iid
,
&
maj_ver
,
&
min_ver
);
ok
(
hres
==
S_OK
,
"AtlGetObjectSourceInterface failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
debu
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
IID_NULL
),
"iid = %s
\n
"
,
debu
gstr_guid
(
&
iid
));
ok
(
IsEqualGUID
(
&
libid
,
&
LIBID_MSHTML
),
"libid = %s
\n
"
,
wine_db
gstr_guid
(
&
libid
));
ok
(
IsEqualGUID
(
&
iid
,
&
IID_NULL
),
"iid = %s
\n
"
,
wine_db
gstr_guid
(
&
iid
));
ok
(
maj_ver
==
4
&&
min_ver
==
0
,
"ver = %d.%d
\n
"
,
maj_ver
,
min_ver
);
}
...
...
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