From 26552958f898d24356842c21f1734582769db65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Pluci=C5=84ski?= Date: Thu, 23 Sep 2010 15:39:30 +0200 Subject: [PATCH] gameux: IGameStatistics::GetMaxCategoryLength implementation. --- dlls/gameux/gamestatistics.c | 9 +++++++-- dlls/gameux/tests/gamestatistics.c | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c index 69781735dfa..063fbd53cb1 100644 --- a/dlls/gameux/gamestatistics.c +++ b/dlls/gameux/gamestatistics.c @@ -31,6 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(gameux); +#define MAX_CATEGORY_LENGTH 60 /******************************************************************************* * IGameStatistics implementation */ @@ -108,8 +109,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxCategoryLength( IGameStatistics *iface, UINT *cch) { - FIXME("stub\n"); - return E_NOTIMPL; + TRACE("(%p, %p)\n", iface, cch); + if(!cch) + return E_INVALIDARG; + + *cch = MAX_CATEGORY_LENGTH; + return S_OK; } static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength( diff --git a/dlls/gameux/tests/gamestatistics.c b/dlls/gameux/tests/gamestatistics.c index 7641157ae0a..80e4e9181eb 100644 --- a/dlls/gameux/tests/gamestatistics.c +++ b/dlls/gameux/tests/gamestatistics.c @@ -244,8 +244,8 @@ static void test_gamestatisticsmgr( void ) { /* test of limit values returned from interface */ hr = IGameStatistics_GetMaxCategoryLength(gs, &uMaxCategoryLength); - todo_wine ok(hr==S_OK, "getting maximum length of category failed\n"); - todo_wine ok(uMaxCategoryLength==60, "getting maximum length of category returned invalid value: %d\n", uMaxCategoryLength); + ok(hr==S_OK, "getting maximum length of category failed\n"); + ok(uMaxCategoryLength==60, "getting maximum length of category returned invalid value: %d\n", uMaxCategoryLength); hr = IGameStatistics_GetMaxNameLength(gs, &uMaxNameLength); todo_wine ok(hr==S_OK, "getting maximum name length failed\n");