Mariusz Pluciński : gameux: IGameStatistics:: GetMaxCategoryLength implementation.
Module: wine Branch: master Commit: 26552958f898d24356842c21f1734582769db65b URL: http://source.winehq.org/git/wine.git/?a=commit;h=26552958f898d24356842c21f1... Author: Mariusz Pluciński <vshader(a)gmail.com> Date: Thu Sep 23 15:39:30 2010 +0200 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 6978173..063fbd5 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 7641157..80e4e91 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");
participants (1)
-
Alexandre Julliard