From: Vibhav Pant vibhavp@gmail.com
--- dlls/windows.devices.bluetooth/advertisement.c | 10 ++++++---- dlls/windows.devices.bluetooth/tests/bluetooth.c | 8 ++++---- 2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/dlls/windows.devices.bluetooth/advertisement.c b/dlls/windows.devices.bluetooth/advertisement.c index 02d7b4ebf7c..c79f1b5dded 100644 --- a/dlls/windows.devices.bluetooth/advertisement.c +++ b/dlls/windows.devices.bluetooth/advertisement.c @@ -89,14 +89,16 @@ static HRESULT WINAPI adv_watcher_GetTrustLevel( IBluetoothLEAdvertisementWatche
static HRESULT WINAPI adv_watcher_get_MinSamplingInternal( IBluetoothLEAdvertisementWatcher *iface, TimeSpan *value ) { - FIXME( "(%p, %p): stub!\n", iface, value ); - return E_NOTIMPL; + TRACE( "(%p, %p)\n", iface, value ); + value->Duration = 1000000; + return S_OK; }
static HRESULT WINAPI adv_watcher_get_MaxSamplingInternal( IBluetoothLEAdvertisementWatcher *iface, TimeSpan *value ) { - FIXME( "(%p, %p): stub!\n", iface, value ); - return E_NOTIMPL; + TRACE( "(%p, %p)\n", iface, value ); + value->Duration = 255000000; + return S_OK; }
static HRESULT WINAPI adv_watcher_get_MinOutOfRangeTimeout( IBluetoothLEAdvertisementWatcher *iface, TimeSpan *value ) diff --git a/dlls/windows.devices.bluetooth/tests/bluetooth.c b/dlls/windows.devices.bluetooth/tests/bluetooth.c index 8d734da5cba..540536ae027 100644 --- a/dlls/windows.devices.bluetooth/tests/bluetooth.c +++ b/dlls/windows.devices.bluetooth/tests/bluetooth.c @@ -678,13 +678,13 @@ static void test_BluetoothLEAdvertisementWatcher( void )
span.Duration = 0; hr = IBluetoothLEAdvertisementWatcher_get_MinSamplingInterval( watcher, &span ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); - todo_wine ok( span.Duration == 1000000, "got Duration %I64d.\n", span.Duration ); + ok( hr == S_OK, "got hr %#lx.\n", hr ); + ok( span.Duration == 1000000, "got Duration %I64d.\n", span.Duration );
span.Duration = 0; hr = IBluetoothLEAdvertisementWatcher_get_MaxSamplingInterval( watcher, &span ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); - todo_wine ok( span.Duration == 255000000, "got Duration %I64d.\n", span.Duration ); + ok( hr == S_OK, "got hr %#lx.\n", hr ); + ok( span.Duration == 255000000, "got Duration %I64d.\n", span.Duration );
span.Duration = 0; hr = IBluetoothLEAdvertisementWatcher_get_MinOutOfRangeTimeout( watcher, &span );