From: Mohamad Al-Jaf mohamadaljaf@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55759 --- dlls/windows.system.profile.systemid/main.c | 6 +++++- dlls/windows.system.profile.systemid/tests/systemid.c | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/windows.system.profile.systemid/main.c b/dlls/windows.system.profile.systemid/main.c index 01ab3788c9d..095d75de343 100644 --- a/dlls/windows.system.profile.systemid/main.c +++ b/dlls/windows.system.profile.systemid/main.c @@ -191,7 +191,11 @@ static HRESULT WINAPI system_identification_info_get_Id( ISystemIdentificationIn static HRESULT WINAPI system_identification_info_get_Source( ISystemIdentificationInfo *iface, SystemIdentificationSource *value ) { FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + + if (!value) return E_INVALIDARG; + + *value = SystemIdentificationSource_None; + return S_OK; }
static const struct ISystemIdentificationInfoVtbl system_identification_info_vtbl = diff --git a/dlls/windows.system.profile.systemid/tests/systemid.c b/dlls/windows.system.profile.systemid/tests/systemid.c index 35e50c1ed03..b34eae43994 100644 --- a/dlls/windows.system.profile.systemid/tests/systemid.c +++ b/dlls/windows.system.profile.systemid/tests/systemid.c @@ -80,10 +80,8 @@ static void test_SystemIdentification_Statics(void) check_interface( system_id_info, &IID_IAgileObject, FALSE );
hr = ISystemIdentificationInfo_get_Source( system_id_info, NULL ); - todo_wine ok( hr == E_INVALIDARG, "got hr %#lx.\n", hr ); hr = ISystemIdentificationInfo_get_Source( system_id_info, &system_id_source ); - todo_wine ok( hr == S_OK, "got hr %#lx.\n", hr ); todo_wine ok( system_id_source == SystemIdentificationSource_Uefi, "ISystemIdentificationInfo_get_Source returned %u.\n", system_id_source );