gameux: Add UninstallGame implementation.
This commit is contained in:
parent
5213d9d07e
commit
95a9bc043e
|
@ -991,9 +991,23 @@ static HRESULT WINAPI GameExplorer2Impl_UninstallGame(
|
|||
IGameExplorer2 *iface,
|
||||
LPCWSTR binaryGDFPath)
|
||||
{
|
||||
HRESULT hr;
|
||||
GUID instanceId;
|
||||
GameExplorerImpl *This = impl_from_IGameExplorer2(iface);
|
||||
FIXME("stub (%p, %s)\n", This, debugstr_w(binaryGDFPath));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p, %s)\n", This, debugstr_w(binaryGDFPath));
|
||||
|
||||
if(!binaryGDFPath)
|
||||
return E_INVALIDARG;
|
||||
|
||||
hr = GAMEUX_FindGameInstanceId(binaryGDFPath, GIS_CURRENT_USER, &instanceId);
|
||||
|
||||
if(hr == S_FALSE)
|
||||
hr = GAMEUX_FindGameInstanceId(binaryGDFPath, GIS_ALL_USERS, &instanceId);
|
||||
|
||||
if(hr == S_OK)
|
||||
hr = GAMEUX_RemoveRegistryRecord(&instanceId);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static const struct IGameExplorer2Vtbl GameExplorer2ImplVtbl =
|
||||
|
|
|
@ -646,10 +646,10 @@ void test_install_uninstall_game(void)
|
|||
_validateGameRegistryKey(__LINE__, GIS_CURRENT_USER, &guid, &applicationId, sExePath, sExeName, TRUE);
|
||||
|
||||
hr = IGameExplorer2_UninstallGame(ge2, sExeName);
|
||||
todo_wine ok(SUCCEEDED(hr), "IGameExplorer2::UninstallGame failed (error 0x%08x)\n", hr);
|
||||
ok(SUCCEEDED(hr), "IGameExplorer2::UninstallGame failed (error 0x%08x)\n", hr);
|
||||
}
|
||||
|
||||
todo_wine _validateGameRegistryKey(__LINE__, GIS_CURRENT_USER, &guid, &applicationId, sExePath, sExeName, FALSE);
|
||||
_validateGameRegistryKey(__LINE__, GIS_CURRENT_USER, &guid, &applicationId, sExePath, sExeName, FALSE);
|
||||
|
||||
IGameExplorer2_Release(ge2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue