Commit 95a9bc04 authored by Mariusz Pluciński's avatar Mariusz Pluciński Committed by Alexandre Julliard

gameux: Add UninstallGame implementation.

parent 5213d9d0
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment