Module: wine Branch: master Commit: 76ac3850c708b16494b0760380ad9aa54aabe4f0 URL: https://gitlab.winehq.org/wine/wine/-/commit/76ac3850c708b16494b0760380ad9aa...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu Nov 23 11:04:33 2023 +0100
twinapi.appcore: Succeed some EasClientDeviceInformation stub calls.
---
dlls/twinapi.appcore/client_device_information.c | 10 +++++----- dlls/twinapi.appcore/tests/twinapi.c | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/dlls/twinapi.appcore/client_device_information.c b/dlls/twinapi.appcore/client_device_information.c index eb495cd9c8d..0cfbc0011e7 100644 --- a/dlls/twinapi.appcore/client_device_information.c +++ b/dlls/twinapi.appcore/client_device_information.c @@ -96,31 +96,31 @@ static HRESULT WINAPI client_device_information_get_Id( IEasClientDeviceInformat static HRESULT WINAPI client_device_information_get_OperatingSystem( IEasClientDeviceInformation *iface, HSTRING *value ) { FIXME( "iface %p, value %p stub.\n", iface, value ); - return E_NOTIMPL; + return WindowsCreateString( NULL, 0, value ); }
static HRESULT WINAPI client_device_information_get_FriendlyName( IEasClientDeviceInformation *iface, HSTRING *value ) { FIXME( "iface %p, value %p stub.\n", iface, value ); - return E_NOTIMPL; + return WindowsCreateString( NULL, 0, value ); }
static HRESULT WINAPI client_device_information_get_SystemManufacturer( IEasClientDeviceInformation *iface, HSTRING *value ) { FIXME( "iface %p, value %p stub.\n", iface, value ); - return E_NOTIMPL; + return WindowsCreateString( NULL, 0, value ); }
static HRESULT WINAPI client_device_information_get_SystemProductName( IEasClientDeviceInformation *iface, HSTRING *value ) { FIXME( "iface %p, value %p stub.\n", iface, value ); - return E_NOTIMPL; + return WindowsCreateString( NULL, 0, value ); }
static HRESULT WINAPI client_device_information_get_SystemSku( IEasClientDeviceInformation *iface, HSTRING *value ) { FIXME( "iface %p, value %p stub.\n", iface, value ); - return E_NOTIMPL; + return WindowsCreateString( NULL, 0, value ); }
static IEasClientDeviceInformationVtbl client_device_information_vtbl = diff --git a/dlls/twinapi.appcore/tests/twinapi.c b/dlls/twinapi.appcore/tests/twinapi.c index d3bef0fa164..a2d0fbed272 100644 --- a/dlls/twinapi.appcore/tests/twinapi.c +++ b/dlls/twinapi.appcore/tests/twinapi.c @@ -80,6 +80,26 @@ static void test_EasClientDeviceInformation(void) check_interface( client_device_information, &IID_IInspectable, TRUE ); check_interface( client_device_information, &IID_IAgileObject, FALSE );
+ hr = IEasClientDeviceInformation_get_OperatingSystem( client_device_information, &str ); + ok( hr == S_OK, "got hr %#lx\n", hr ); + WindowsDeleteString( str ); + + hr = IEasClientDeviceInformation_get_FriendlyName( client_device_information, &str ); + ok( hr == S_OK, "got hr %#lx\n", hr ); + WindowsDeleteString( str ); + + hr = IEasClientDeviceInformation_get_SystemManufacturer( client_device_information, &str ); + ok( hr == S_OK, "got hr %#lx\n", hr ); + WindowsDeleteString( str ); + + hr = IEasClientDeviceInformation_get_SystemProductName( client_device_information, &str ); + ok( hr == S_OK, "got hr %#lx\n", hr ); + WindowsDeleteString( str ); + + hr = IEasClientDeviceInformation_get_SystemSku( client_device_information, &str ); + ok( hr == S_OK, "got hr %#lx\n", hr ); + WindowsDeleteString( str ); + ref = IEasClientDeviceInformation_Release( client_device_information ); ok( ref == 0, "got ref %ld.\n", ref );