gameux/tests: Skip gamestatistic tests on win10 >= 1803.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51716
Signed-off-by: André Zwing <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
André Zwing 2021-12-01 18:17:03 +01:00 committed by Alexandre Julliard
parent f807f74194
commit 6282718c73
1 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,12 @@ static void test_gamestatisticsmgr( void )
/* this should fail, because statistics don't exist yet */
gs = (void *)0xdeadbeef;
hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENONLY, &dwOpenResult, &gs);
if (hr != HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND))
{
/* With win10 1803 game explorer functionality was removed and gameux became a stub */
win_skip("gameux is partially stubbed, skipping tests\n");
return;
}
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "GetGameStatistics returned unexpected value: 0x%08x\n", hr);
ok(gs == NULL, "Expected output pointer to be NULL, got %s\n",
(gs == (void *)0xdeadbeef ? "deadbeef" : "neither NULL nor deadbeef"));