forked from Mirrors/wine-wine
gameux: IGameStatistics::GetMaxCategoryLength implementation.
parent
0ef59050c6
commit
26552958f8
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(gameux);
|
WINE_DEFAULT_DEBUG_CHANNEL(gameux);
|
||||||
|
|
||||||
|
#define MAX_CATEGORY_LENGTH 60
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* IGameStatistics implementation
|
* IGameStatistics implementation
|
||||||
*/
|
*/
|
||||||
|
@ -108,8 +109,12 @@ static HRESULT WINAPI GameStatisticsImpl_GetMaxCategoryLength(
|
||||||
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_CATEGORY_LENGTH;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength(
|
static HRESULT WINAPI GameStatisticsImpl_GetMaxNameLength(
|
||||||
|
|
|
@ -244,8 +244,8 @@ static void test_gamestatisticsmgr( void )
|
||||||
{
|
{
|
||||||
/* test of limit values returned from interface */
|
/* test of limit values returned from interface */
|
||||||
hr = IGameStatistics_GetMaxCategoryLength(gs, &uMaxCategoryLength);
|
hr = IGameStatistics_GetMaxCategoryLength(gs, &uMaxCategoryLength);
|
||||||
todo_wine ok(hr==S_OK, "getting maximum length of category failed\n");
|
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(uMaxCategoryLength==60, "getting maximum length of category returned invalid value: %d\n", uMaxCategoryLength);
|
||||||
|
|
||||||
hr = IGameStatistics_GetMaxNameLength(gs, &uMaxNameLength);
|
hr = IGameStatistics_GetMaxNameLength(gs, &uMaxNameLength);
|
||||||
todo_wine ok(hr==S_OK, "getting maximum name length failed\n");
|
todo_wine ok(hr==S_OK, "getting maximum name length failed\n");
|
||||||
|
|
Loading…
Reference in New Issue