Commit 301433b6 authored by Mariusz Pluciński's avatar Mariusz Pluciński Committed by Alexandre Julliard

gameux: IGameStatistics::GetMaxNameLength implementation.

parent 26552958
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(gameux); WINE_DEFAULT_DEBUG_CHANNEL(gameux);
#define MAX_CATEGORY_LENGTH 60 #define MAX_CATEGORY_LENGTH 60
#define MAX_NAME_LENGTH 30
/******************************************************************************* /*******************************************************************************
* IGameStatistics implementation * IGameStatistics implementation
*/ */
...@@ -121,8 +122,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength( ...@@ -121,8 +122,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength(
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_NAME_LENGTH;
return S_OK;
} }
static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength( static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength(
......
...@@ -248,8 +248,8 @@ static void test_gamestatisticsmgr( void ) ...@@ -248,8 +248,8 @@ static void test_gamestatisticsmgr( void )
ok(uMaxCategoryLength==60, "getting maximum length of category returned invalid value: %d\n", uMaxCategoryLength); ok(uMaxCategoryLength==60, "getting maximum length of category returned invalid value: %d\n", uMaxCategoryLength);
hr = IGameStatistics_GetMaxNameLength(gs, &uMaxNameLength); hr = IGameStatistics_GetMaxNameLength(gs, &uMaxNameLength);
todo_wine ok(hr==S_OK, "getting maximum name length failed\n"); ok(hr==S_OK, "getting maximum name length failed\n");
todo_wine 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"); todo_wine ok(hr==S_OK, "getting maximum value length 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