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
f3664e9b
Commit
f3664e9b
authored
Aug 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink/tests: Use the global wine_dbgstr_w instead of a local variant.
parent
186528e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
hlink.c
dlls/hlink/tests/hlink.c
+4
-13
No files found.
dlls/hlink/tests/hlink.c
View file @
f3664e9b
...
@@ -57,15 +57,6 @@ DEFINE_EXPECT(IsSystemMoniker);
...
@@ -57,15 +57,6 @@ DEFINE_EXPECT(IsSystemMoniker);
DEFINE_EXPECT
(
BindToStorage
);
DEFINE_EXPECT
(
BindToStorage
);
DEFINE_EXPECT
(
GetDisplayName
);
DEFINE_EXPECT
(
GetDisplayName
);
static
const
char
*
debugstr_w
(
LPCWSTR
str
)
{
static
char
buf
[
1024
];
if
(
!
str
)
return
"(null)"
;
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
buf
;
}
static
const
char
*
debugstr_guid
(
REFIID
riid
)
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
{
static
char
buf
[
50
];
static
char
buf
[
50
];
...
@@ -597,13 +588,13 @@ static void test_HlinkCreateExtensionServices(void)
...
@@ -597,13 +588,13 @@ static void test_HlinkCreateExtensionServices(void)
hres
=
IHttpNegotiate_BeginningTransaction
(
http_negotiate
,
(
void
*
)
0xdeadbeef
,
(
void
*
)
0xdeadbeef
,
hres
=
IHttpNegotiate_BeginningTransaction
(
http_negotiate
,
(
void
*
)
0xdeadbeef
,
(
void
*
)
0xdeadbeef
,
0
,
&
headers
);
0
,
&
headers
);
ok
(
hres
==
S_OK
,
"BeginningTransaction failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"BeginningTransaction failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
headers
,
headersexW
),
"unexpected headers
\"
%s
\"\n
"
,
debu
gstr_w
(
headers
));
ok
(
!
lstrcmpW
(
headers
,
headersexW
),
"unexpected headers
%s
\n
"
,
wine_db
gstr_w
(
headers
));
CoTaskMemFree
(
headers
);
CoTaskMemFree
(
headers
);
headers
=
(
void
*
)
0xdeadbeef
;
headers
=
(
void
*
)
0xdeadbeef
;
hres
=
IHttpNegotiate_OnResponse
(
http_negotiate
,
200
,
(
void
*
)
0xdeadbeef
,
(
void
*
)
0xdeadbeef
,
&
headers
);
hres
=
IHttpNegotiate_OnResponse
(
http_negotiate
,
200
,
(
void
*
)
0xdeadbeef
,
(
void
*
)
0xdeadbeef
,
&
headers
);
ok
(
hres
==
S_OK
,
"OnResponse failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"OnResponse failed: %08x
\n
"
,
hres
);
ok
(
headers
==
NULL
,
"unexpected headers
\"
%s
\"\n
"
,
debu
gstr_w
(
headers
));
ok
(
headers
==
NULL
,
"unexpected headers
%s
\n
"
,
wine_db
gstr_w
(
headers
));
IHttpNegotiate_Release
(
http_negotiate
);
IHttpNegotiate_Release
(
http_negotiate
);
IAuthenticate_Release
(
authenticate
);
IAuthenticate_Release
(
authenticate
);
...
@@ -635,7 +626,7 @@ static void test_HlinkParseDisplayName(void)
...
@@ -635,7 +626,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
ok
(
hres
==
S_OK
,
"GetDiasplayName failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"GetDiasplayName failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
name
,
winehq_urlW
),
"wrong display name %s
\n
"
,
debu
gstr_w
(
name
));
ok
(
!
lstrcmpW
(
name
,
winehq_urlW
),
"wrong display name %s
\n
"
,
wine_db
gstr_w
(
name
));
CoTaskMemFree
(
name
);
CoTaskMemFree
(
name
);
hres
=
IMoniker_IsSystemMoniker
(
mon
,
&
issys
);
hres
=
IMoniker_IsSystemMoniker
(
mon
,
&
issys
);
...
@@ -662,7 +653,7 @@ static void test_HlinkParseDisplayName(void)
...
@@ -662,7 +653,7 @@ static void test_HlinkParseDisplayName(void)
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
0
,
&
name
);
ok
(
hres
==
S_OK
,
"GetDiasplayName failed: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"GetDiasplayName failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
name
,
invalid_urlW
),
"wrong display name %s
\n
"
,
debu
gstr_w
(
name
));
ok
(
!
lstrcmpW
(
name
,
invalid_urlW
),
"wrong display name %s
\n
"
,
wine_db
gstr_w
(
name
));
CoTaskMemFree
(
name
);
CoTaskMemFree
(
name
);
hres
=
IMoniker_IsSystemMoniker
(
mon
,
&
issys
);
hres
=
IMoniker_IsSystemMoniker
(
mon
,
&
issys
);
...
...
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