Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3350d094
Commit
3350d094
authored
Feb 28, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux/tests: Use correct integral type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
739c5192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gamestatistics.c
dlls/gameux/tests/gamestatistics.c
+5
-5
No files found.
dlls/gameux/tests/gamestatistics.c
View file @
3350d094
...
...
@@ -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
dwO
penResult
;
GAMESTATS_OPEN_RESULT
o
penResult
;
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
,
&
dwO
penResult
,
&
gs
);
hr
=
IGameStatisticsMgr_GetGameStatistics
(
gsm
,
sExeName
,
GAMESTATS_OPEN_OPENONLY
,
&
o
penResult
,
&
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
,
&
dwO
penResult
,
&
gs
);
hr
=
IGameStatisticsMgr_GetGameStatistics
(
gsm
,
sExeName
,
GAMESTATS_OPEN_OPENORCREATE
,
&
o
penResult
,
&
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
,
&
dwO
penResult
,
&
gs
);
hr
=
IGameStatisticsMgr_GetGameStatistics
(
gsm
,
sExeName
,
GAMESTATS_OPEN_OPENORCREATE
,
&
o
penResult
,
&
gs
);
ok
(
SUCCEEDED
(
hr
),
"GetGameStatistics returned error: 0x%08x
\n
"
,
hr
);
ok
(
dwOpenResult
==
GAMESTATS_OPEN_OPENED
,
"GetGameStatistics returned invalid open result: 0x%x
\n
"
,
dwO
penResult
);
ok
(
openResult
==
GAMESTATS_OPEN_OPENED
,
"GetGameStatistics returned invalid open result: 0x%x
\n
"
,
o
penResult
);
ok
(
gs
!=
NULL
,
"GetGameStatistics did not return valid interface pointer
\n
"
);
/* verify values with these which we stored before*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment