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
3e8fa4c7
Commit
3e8fa4c7
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
hlink/tests: Use common wine_dbgstr_guid implementation from test.h.
parent
5332d0e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
22 deletions
+10
-22
hlink.c
dlls/hlink/tests/hlink.c
+10
-22
No files found.
dlls/hlink/tests/hlink.c
View file @
3e8fa4c7
...
...
@@ -79,18 +79,6 @@ DEFINE_EXPECT(HLF_UpdateHlink);
DEFINE_GUID
(
IID_IHlinkHistory
,
0x79eac9c8
,
0xbaf9
,
0x11ce
,
0x8c
,
0x82
,
0x00
,
0xaa
,
0x00
,
0x4b
,
0xa9
,
0x0b
);
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
void
test_HlinkIsShortcut
(
void
)
{
UINT
i
;
...
...
@@ -707,7 +695,7 @@ static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
static
HRESULT
WINAPI
ServiceProvider_QueryService
(
IServiceProvider
*
iface
,
REFGUID
guidService
,
REFIID
riid
,
void
**
ppv
)
{
ok
(
0
,
"unexpected service %s
\n
"
,
debu
gstr_guid
(
guidService
));
ok
(
0
,
"unexpected service %s
\n
"
,
wine_db
gstr_guid
(
guidService
));
return
E_NOINTERFACE
;
}
...
...
@@ -729,7 +717,7 @@ static HRESULT WINAPI BindStatusCallback_QueryInterface(IBindStatusCallback *ifa
return
S_OK
;
}
ok
(
0
,
"unexpected interface %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
0
,
"unexpected interface %s
\n
"
,
wine_db
gstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -820,7 +808,7 @@ static HRESULT WINAPI HlinkBrowseContext_QueryInterface(
return
E_NOINTERFACE
;
}
ok
(
0
,
"unexpected interface: %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
0
,
"unexpected interface: %s
\n
"
,
wine_db
gstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -964,7 +952,7 @@ static HRESULT WINAPI HlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID rii
return
S_OK
;
}
ok
(
0
,
"unexpected interface: %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
0
,
"unexpected interface: %s
\n
"
,
wine_db
gstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -1037,7 +1025,7 @@ static HRESULT WINAPI Moniker_QueryInterface(IMoniker *iface, REFIID riid, void
{
*
ppv
=
NULL
;
ok
(
0
,
"unexpected riid: %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
0
,
"unexpected riid: %s
\n
"
,
wine_db
gstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -1089,7 +1077,7 @@ static HRESULT WINAPI Moniker_BindToObject(IMoniker *iface, IBindCtx *pbc, IMoni
ok
(
pbc
!=
_bctx
,
"pbc != _bctx
\n
"
);
ok
(
pmkToLeft
==
NULL
,
"pmkToLeft = %p
\n
"
,
pmkToLeft
);
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
wine_db
gstr_guid
(
riid
));
ok
(
ppv
!=
NULL
,
"ppv == NULL
\n
"
);
ok
(
*
ppv
==
NULL
,
"*ppv = %p
\n
"
,
*
ppv
);
...
...
@@ -1109,7 +1097,7 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon
ok
(
pbc
==
_bctx
,
"pbc != _bctx
\n
"
);
ok
(
pmkToLeft
==
NULL
,
"pmkToLeft=%p
\n
"
,
pmkToLeft
);
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
debu
gstr_guid
(
riid
));
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
wine_db
gstr_guid
(
riid
));
ok
(
ppv
!=
NULL
,
"ppv == NULL
\n
"
);
ok
(
*
ppv
==
NULL
,
"*ppv=%p
\n
"
,
*
ppv
);
...
...
@@ -1832,7 +1820,7 @@ static IMoniker hls_ref_Moniker = { &hls_ref_MonikerVtbl };
static
HRESULT
WINAPI
hls_QueryInterface
(
IHlinkSite
*
iface
,
REFGUID
iid
,
void
**
obj
)
{
ok
(
0
,
"QI: %p %s %p
\n
"
,
iface
,
debu
gstr_guid
(
iid
),
obj
);
ok
(
0
,
"QI: %p %s %p
\n
"
,
iface
,
wine_db
gstr_guid
(
iid
),
obj
);
return
E_NOTIMPL
;
}
...
...
@@ -1849,8 +1837,8 @@ static ULONG WINAPI hls_Release(IHlinkSite *iface)
static
HRESULT
WINAPI
hls_QueryService
(
IHlinkSite
*
iface
,
DWORD
siteData
,
REFGUID
service
,
REFIID
riid
,
IUnknown
**
punk
)
{
ok
(
0
,
"QS: %p %x %s %s %p
\n
"
,
iface
,
siteData
,
debu
gstr_guid
(
service
),
debu
gstr_guid
(
riid
),
punk
);
ok
(
0
,
"QS: %p %x %s %s %p
\n
"
,
iface
,
siteData
,
wine_db
gstr_guid
(
service
),
wine_db
gstr_guid
(
riid
),
punk
);
return
E_NOTIMPL
;
}
...
...
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