Mariusz Pluciński : gameux: IGameStatistics:: GetMaxNameLength implementation.
Alexandre Julliard
julliard at winehq.org
Fri Sep 24 11:43:44 CDT 2010
Module: wine
Branch: master
Commit: 301433b67034983313268022319d4ef4d36a0125
URL: http://source.winehq.org/git/wine.git/?a=commit;h=301433b67034983313268022319d4ef4d36a0125
Author: Mariusz Pluciński <vshader at gmail.com>
Date: Thu Sep 23 15:39:42 2010 +0200
gameux: IGameStatistics::GetMaxNameLength 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 063fbd5..905baf2 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -32,6 +32,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(gameux);
#define MAX_CATEGORY_LENGTH 60
+#define MAX_NAME_LENGTH 30
/*******************************************************************************
* IGameStatistics implementation
*/
@@ -121,8 +122,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength(
IGameStatistics *iface,
UINT *cch)
{
- FIXME("stub\n");
- return E_NOTIMPL;
+ TRACE("(%p, %p)\n", iface, cch);
+ if(!cch)
+ return E_INVALIDARG;
+
+ *cch = MAX_NAME_LENGTH;
+ return S_OK;
}
static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength(
diff --git a/dlls/gameux/tests/gamestatistics.c b/dlls/gameux/tests/gamestatistics.c
index 80e4e91..3904bea 100644
--- a/dlls/gameux/tests/gamestatistics.c
+++ b/dlls/gameux/tests/gamestatistics.c
@@ -248,8 +248,8 @@ static void test_gamestatisticsmgr( void )
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");
- todo_wine ok(uMaxNameLength==30, "getting maximum name length returned invalid value: %d\n", uMaxNameLength);
+ ok(hr==S_OK, "getting maximum name length failed\n");
+ ok(uMaxNameLength==30, "getting maximum name length returned invalid value: %d\n", uMaxNameLength);
hr = IGameStatistics_GetMaxValueLength(gs, &uMaxValueLength);
todo_wine ok(hr==S_OK, "getting maximum value length failed\n");
More information about the wine-cvs
mailing list