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
79161ea0
Commit
79161ea0
authored
Jul 03, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.networking.hostname: Implement IHostName::get_RawName().
parent
3fe0cfef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
hostname.c
dlls/windows.networking.hostname/hostname.c
+6
-2
hostname.c
dlls/windows.networking.hostname/tests/hostname.c
+4
-4
No files found.
dlls/windows.networking.hostname/hostname.c
View file @
79161ea0
...
...
@@ -191,8 +191,12 @@ static HRESULT WINAPI hostname_get_IPInformation( IHostName *iface, IIPInformati
static
HRESULT
WINAPI
hostname_get_RawName
(
IHostName
*
iface
,
HSTRING
*
value
)
{
FIXME
(
"iface %p, value %p stub!
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
struct
hostname
*
impl
=
impl_from_IHostName
(
iface
);
TRACE
(
"iface %p, value %p.
\n
"
,
iface
,
value
);
if
(
!
value
)
return
E_INVALIDARG
;
return
WindowsDuplicateString
(
impl
->
rawname
,
value
);
}
static
HRESULT
WINAPI
hostname_get_DisplayName
(
IHostName
*
iface
,
HSTRING
*
value
)
...
...
dlls/windows.networking.hostname/tests/hostname.c
View file @
79161ea0
...
...
@@ -94,12 +94,12 @@ static void test_HostnameStatics(void)
check_interface
(
hostname
,
&
IID_IHostName
);
hr
=
IHostName_get_RawName
(
hostname
,
NULL
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IHostName_get_RawName
(
hostname
,
&
rawname
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
rawname
,
&
res
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
rawname
)
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
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