mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
gameux: IGameStatistics::GetMaxValueLength implementation.
This commit is contained in:
parent
301433b670
commit
448ac80fd4
@ -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(
|
|||||||
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 )
|
|||||||
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user