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_NAME_LENGTH 30
|
||||
#define MAX_VALUE_LENGTH 30
|
||||
/*******************************************************************************
|
||||
* IGameStatistics implementation
|
||||
*/
|
||||
@ -134,8 +135,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxValueLength(
|
||||
IGameStatistics *iface,
|
||||
UINT *cch)
|
||||
{
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p, %p)\n", iface, cch);
|
||||
if(!cch)
|
||||
return E_INVALIDARG;
|
||||
|
||||
*cch = MAX_VALUE_LENGTH;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
hr = IGameStatistics_GetMaxValueLength(gs, &uMaxValueLength);
|
||||
todo_wine 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(hr==S_OK, "getting maximum value length failed\n");
|
||||
ok(uMaxValueLength==30, "getting maximum value length returned invalid value: %d\n", uMaxValueLength);
|
||||
|
||||
hr = IGameStatistics_GetMaxCategories(gs, &wMaxCategories);
|
||||
todo_wine ok(hr==S_OK, "getting maximum number of categories failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user