mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 12:33:41 +00:00
windows.networking.hostname: Implement IHostName::get_RawName().
This commit is contained in:
parent
3fe0cfef9c
commit
79161ea00a
|
@ -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 )
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue