Eric Pouech : gameux/tests: Use correct integral type.
Alexandre Julliard
julliard at winehq.org
Mon Feb 28 15:50:25 CST 2022
Module: wine
Branch: master
Commit: 3350d094499da0b98c020bfa3ec4bc4f74a89c87
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3350d094499da0b98c020bfa3ec4bc4f74a89c87
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Mon Feb 28 08:25:32 2022 +0100
gameux/tests: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gameux/tests/gamestatistics.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/gameux/tests/gamestatistics.c b/dlls/gameux/tests/gamestatistics.c
index aa10156f1ab..2b1a867e83c 100644
--- a/dlls/gameux/tests/gamestatistics.c
+++ b/dlls/gameux/tests/gamestatistics.c
@@ -141,7 +141,7 @@ static void test_gamestatisticsmgr( void )
static const GUID guidApplicationId = { 0x17A6558E, 0x60BE, 0x4078, { 0xB6, 0x6F, 0x9C, 0x3A, 0xDA, 0x2A, 0x32, 0xE6 } };
HRESULT hr;
- DWORD dwOpenResult;
+ GAMESTATS_OPEN_RESULT openResult;
LPWSTR lpStatisticsFile = NULL;
LPWSTR lpName = NULL, lpValue = NULL, sTooLongString = NULL;
UINT uMaxCategoryLength = 0, uMaxNameLength = 0, uMaxValueLength = 0;
@@ -157,7 +157,7 @@ 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);
+ hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENONLY, &openResult, &gs);
if (hr != HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND))
{
/* With win10 1803 game explorer functionality was removed and gameux became a stub */
@@ -169,7 +169,7 @@ static void test_gamestatisticsmgr( void )
(gs == (void *)0xdeadbeef ? "deadbeef" : "neither NULL nor deadbeef"));
/* now, allow them to be created */
- hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &dwOpenResult, &gs);
+ hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &openResult, &gs);
ok(SUCCEEDED(hr), "GetGameStatistics returned error: 0x%x\n", hr);
ok(gs!=NULL, "GetGameStatistics did not return valid interface pointer\n");
if(gs)
@@ -277,9 +277,9 @@ static void test_gamestatisticsmgr( void )
ok(SUCCEEDED(hr), "releasing IGameStatistics returned error: 0x%08x\n", hr);
/* try to read written statistics */
- hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &dwOpenResult, &gs);
+ hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENORCREATE, &openResult, &gs);
ok(SUCCEEDED(hr), "GetGameStatistics returned error: 0x%08x\n", hr);
- ok(dwOpenResult == GAMESTATS_OPEN_OPENED, "GetGameStatistics returned invalid open result: 0x%x\n", dwOpenResult);
+ ok(openResult == GAMESTATS_OPEN_OPENED, "GetGameStatistics returned invalid open result: 0x%x\n", openResult);
ok(gs!=NULL, "GetGameStatistics did not return valid interface pointer\n");
/* verify values with these which we stored before*/
More information about the wine-cvs
mailing list