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
783176aa
Commit
783176aa
authored
Jan 25, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe/tests: Use common wine_dbgstr_guid implementation from test.h.
parent
bb2a07f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
31 deletions
+6
-31
intshcut.c
dlls/ieframe/tests/intshcut.c
+1
-14
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+5
-17
No files found.
dlls/ieframe/tests/intshcut.c
View file @
783176aa
...
...
@@ -70,19 +70,6 @@ static IUnknown unknown = {
&
unknownVtbl
};
static
const
char
*
printGUID
(
const
GUID
*
guid
)
{
static
char
guidSTR
[
39
];
if
(
!
guid
)
return
NULL
;
sprintf
(
guidSTR
,
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
guid
->
Data1
,
guid
->
Data2
,
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]);
return
guidSTR
;
}
static
void
test_Aggregability
(
void
)
{
HRESULT
hr
;
...
...
@@ -109,7 +96,7 @@ static void can_query_interface(IUnknown *pUnknown, REFIID riid)
HRESULT
hr
;
IUnknown
*
newInterface
;
hr
=
IUnknown_QueryInterface
(
pUnknown
,
riid
,
(
void
**
)
&
newInterface
);
ok
(
hr
==
S_OK
,
"interface %s could not be queried
\n
"
,
printGUID
(
riid
));
ok
(
hr
==
S_OK
,
"interface %s could not be queried
\n
"
,
wine_dbgstr_guid
(
riid
));
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
newInterface
);
}
...
...
dlls/ieframe/tests/webbrowser.c
View file @
783176aa
...
...
@@ -213,18 +213,6 @@ static BOOL iface_cmp(IUnknown *iface1, IUnknown *iface2)
return
unk1
==
unk2
;
}
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
static
char
buf
[
50
];
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
BSTR
a2bstr
(
const
char
*
str
)
{
BSTR
ret
;
...
...
@@ -483,7 +471,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
ok
(
0
,
"unexpected nCmdID %d of CGID_DocHostCommandHandler
\n
"
,
nCmdID
);
}
}
else
{
ok
(
0
,
"unexpected pguidCmdGroup %s
\n
"
,
debu
gstr_guid
(
pguidCmdGroup
));
ok
(
0
,
"unexpected pguidCmdGroup %s
\n
"
,
wine_db
gstr_guid
(
pguidCmdGroup
));
}
return
E_FAIL
;
...
...
@@ -664,7 +652,7 @@ static HRESULT WINAPI WebBrowserEvents2_QueryInterface(IDispatch *iface, REFIID
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
;
}
...
...
@@ -1699,7 +1687,7 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface,
/* 20C46561-8491-11CF-960C-0080C7F4EE85 no info */
else
trace
(
"Service %s not supported
\n
"
,
debu
gstr_guid
(
guidService
));
trace
(
"Service %s not supported
\n
"
,
wine_db
gstr_guid
(
guidService
));
return
E_NOINTERFACE
;
}
...
...
@@ -1745,7 +1733,7 @@ static HRESULT QueryInterface(REFIID riid, void **ppv)
else
{
/* are there more interfaces, that a host can support? */
trace
(
"%s: interface not supported
\n
"
,
debu
gstr_guid
(
riid
));
trace
(
"%s: interface not supported
\n
"
,
wine_db
gstr_guid
(
riid
));
}
return
(
*
ppv
)
?
S_OK
:
E_NOINTERFACE
;
...
...
@@ -1991,7 +1979,7 @@ static void test_ClassInfo(IWebBrowser2 *unk)
ok
(
hres
==
S_OK
,
"GetTypeAtr failed: %08x
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
type_attr
->
guid
,
wb_version
>
1
?
&
CLSID_WebBrowser
:
&
CLSID_WebBrowser_V1
),
"guid = %s
\n
"
,
debu
gstr_guid
(
&
type_attr
->
guid
));
"guid = %s
\n
"
,
wine_db
gstr_guid
(
&
type_attr
->
guid
));
ITypeInfo_ReleaseTypeAttr
(
typeinfo
,
type_attr
);
ITypeInfo_Release
(
typeinfo
);
...
...
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