gameux: IGameStatistics::GetMaxValueLength implementation.

This commit is contained in:
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_CATEGORY_LENGTH 60
#define MAX_NAME_LENGTH 30 #define MAX_NAME_LENGTH 30
#define MAX_VALUE_LENGTH 30
/******************************************************************************* /*******************************************************************************
* IGameStatistics implementation * IGameStatistics implementation
*/ */
@ -134,8 +135,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength(
IGameStatistics *iface, IGameStatistics *iface,
UINT *cch) UINT *cch)
{ {
FIXME("stub\n"); TRACE("(%p, %p)\n", iface, cch);
return E_NOTIMPL; if(!cch)
return E_INVALIDARG;
*cch = MAX_VALUE_LENGTH;
return S_OK;
} }
static HRESULT WINAPI GameStatisticsImpl_GetMaxCategories( 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); ok(uMaxNameLength==30, "getting maximum name length returned invalid value: %d\n", uMaxNameLength);
hr = IGameStatistics_GetMaxValueLength(gs, &uMaxValueLength); hr = IGameStatistics_GetMaxValueLength(gs, &uMaxValueLength);
todo_wine ok(hr==S_OK, "getting maximum value length failed\n"); 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(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"); todo_wine ok(hr==S_OK, "getting maximum number of categories failed\n");