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
95bfbdc8
Commit
95bfbdc8
authored
Jul 08, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jul 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.networking.hostname/tests: Check if passed HSTRING is duplicated.
parent
fc4813ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
hostname.c
dlls/windows.networking.hostname/tests/hostname.c
+3
-1
No files found.
dlls/windows.networking.hostname/tests/hostname.c
View file @
95bfbdc8
...
...
@@ -51,6 +51,7 @@ static void test_HostnameStatics(void)
static
const
WCHAR
*
ip
=
L"192.168.0.0"
;
IHostNameFactory
*
hostnamefactory
;
IActivationFactory
*
factory
;
HSTRING_HEADER
header
;
HSTRING
str
,
rawname
;
IHostName
*
hostname
;
HRESULT
hr
;
...
...
@@ -75,7 +76,7 @@ static void test_HostnameStatics(void)
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IHostNameFactory
,
(
void
**
)
&
hostnamefactory
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateString
(
ip
,
wcslen
(
ip
)
,
&
str
);
hr
=
WindowsCreateString
Reference
(
ip
,
wcslen
(
ip
),
&
header
,
&
str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IHostNameFactory_CreateHostName
(
hostnamefactory
,
NULL
,
&
hostname
);
...
...
@@ -100,6 +101,7 @@ static void test_HostnameStatics(void)
hr
=
WindowsCompareStringOrdinal
(
str
,
rawname
,
&
res
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
rawname
)
);
todo_wine
ok
(
str
!=
rawname
,
"got same HSTRINGs %p, %p.
\n
"
,
str
,
rawname
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
rawname
);
...
...
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