Commit 448ac80f authored by Mariusz Pluciński's avatar Mariusz Pluciński Committed by Alexandre Julliard

gameux: IGameStatistics::GetMaxValueLength implementation.

parent 301433b6
...@@ -33,6 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(gameux); ...@@ -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( ...@@ -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(
......
...@@ -252,8 +252,8 @@ static void test_gamestatisticsmgr( void ) ...@@ -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");
......
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