gameux: IGameStatistics::GetMaxCategories implementation.

This commit is contained in:
Mariusz Pluciński 2010-09-23 15:39:57 +02:00 committed by Alexandre Julliard
parent 448ac80fd4
commit 6dfb5f6a33
2 changed files with 9 additions and 4 deletions

View File

@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(gameux);
#define MAX_CATEGORY_LENGTH 60 #define MAX_CATEGORY_LENGTH 60
#define MAX_NAME_LENGTH 30 #define MAX_NAME_LENGTH 30
#define MAX_VALUE_LENGTH 30 #define MAX_VALUE_LENGTH 30
#define MAX_CATEGORIES 10
/******************************************************************************* /*******************************************************************************
* IGameStatistics implementation * IGameStatistics implementation
*/ */
@ -147,8 +148,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxCategories(
IGameStatistics *iface, IGameStatistics *iface,
WORD *pMax) WORD *pMax)
{ {
FIXME("stub\n"); TRACE("(%p, %p)\n", iface, pMax);
return E_NOTIMPL; if(!pMax)
return E_INVALIDARG;
*pMax = MAX_CATEGORIES;
return S_OK;
} }
static HRESULT WINAPI GameStatisticsImpl_GetMaxStatsPerCategory( static HRESULT WINAPI GameStatisticsImpl_GetMaxStatsPerCategory(

View File

@ -256,8 +256,8 @@ static void test_gamestatisticsmgr( void )
ok(uMaxValueLength==30, "getting maximum value length returned invalid value: %d\n", uMaxValueLength); ok(uMaxValueLength==30, "getting maximum value length returned invalid value: %d\n", uMaxValueLength);
hr = IGameStatistics_GetMaxCategories(gs, &wMaxCategories); hr = IGameStatistics_GetMaxCategories(gs, &wMaxCategories);
todo_wine ok(hr==S_OK, "getting maximum number of categories failed\n"); ok(hr==S_OK, "getting maximum number of categories failed\n");
todo_wine ok(wMaxCategories==10, "getting maximum number of categories returned invalid value: %d\n", wMaxCategories); ok(wMaxCategories==10, "getting maximum number of categories returned invalid value: %d\n", wMaxCategories);
hr = IGameStatistics_GetMaxStatsPerCategory(gs, &wMaxStatsPerCategory); hr = IGameStatistics_GetMaxStatsPerCategory(gs, &wMaxStatsPerCategory);
todo_wine ok(hr==S_OK, "getting maximum number of statistics per category failed\n"); todo_wine ok(hr==S_OK, "getting maximum number of statistics per category failed\n");