gameux: IGameStatistics::GetMaxValueLength implementation.

oldstable
Mariusz Pluciński 2010-09-23 15:39:49 +02:00 committed by Alexandre Julliard
parent 301433b670
commit 448ac80fd4
2 changed files with 9 additions and 4 deletions

View File

@ -33,6 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(gameux);
#define MAX_CATEGORY_LENGTH 60
#define MAX_NAME_LENGTH 30
#define MAX_VALUE_LENGTH 30
/*******************************************************************************
* IGameStatistics implementation
*/
@ -134,8 +135,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength(
IGameStatistics *iface,
UINT *cch)
{
FIXME("stub\n");
return E_NOTIMPL;
TRACE("(%p, %p)\n", iface, cch);
if(!cch)
return E_INVALIDARG;
*cch = MAX_VALUE_LENGTH;
return S_OK;
}
static HRESULT WINAPI GameStatisticsImpl_GetMaxCategories(

View File

@ -252,8 +252,8 @@ static void test_gamestatisticsmgr( void )
ok(uMaxNameLength==30, "getting maximum name length returned invalid value: %d\n", uMaxNameLength);
hr = IGameStatistics_GetMaxValueLength(gs, &uMaxValueLength);
todo_wine ok(hr==S_OK, "getting maximum value length failed\n");
todo_wine ok(uMaxValueLength==30, "getting maximum value length returned invalid value: %d\n", uMaxValueLength);
ok(hr==S_OK, "getting maximum value length failed\n");
ok(uMaxValueLength==30, "getting maximum value length returned invalid value: %d\n", uMaxValueLength);
hr = IGameStatistics_GetMaxCategories(gs, &wMaxCategories);
todo_wine ok(hr==S_OK, "getting maximum number of categories failed\n");