mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-07 00:49:40 +00:00
gameux/tests: Avoid an ever changing value in a gamestatistics failure message.
The whole point of printing the IGameStatisticsMgr::GetGameStatistics() return value was to check whether the pointer had been modified. So provide this information without including an ever changing value in the failure message. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b28512f6c7
commit
142c8df404
|
@ -181,7 +181,8 @@ static void test_gamestatisticsmgr( void )
|
|||
gs = (void *)0xdeadbeef;
|
||||
hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENONLY, &dwOpenResult, &gs);
|
||||
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 %p\n", gs);
|
||||
ok(gs == NULL, "Expected output pointer to be NULL, got %s\n",
|
||||
(gs == (void *)0xdeadbeef ? "deadbeef" : "neither NULL nor deadbeef"));
|
||||
|
||||
/* now, allow them to be created */
|
||||
hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &dwOpenResult, &gs);
|
||||
|
|
Loading…
Reference in a new issue