Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ef087934
Commit
ef087934
authored
Feb 01, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux/tests: Drop game stats test workarounds for Windows <= 2000.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
be8534d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
+2
-29
Makefile.in
dlls/gameux/tests/Makefile.in
+1
-1
gamestatistics.c
dlls/gameux/tests/gamestatistics.c
+1
-28
No files found.
dlls/gameux/tests/Makefile.in
View file @
ef087934
TESTDLL
=
gameux.dll
TESTDLL
=
gameux.dll
IMPORTS
=
uuid shlwapi oleaut32 ole32 advapi32
IMPORTS
=
uuid shlwapi oleaut32 ole32 advapi32
shell32
C_SRCS
=
\
C_SRCS
=
\
gameexplorer.c
\
gameexplorer.c
\
...
...
dlls/gameux/tests/gamestatistics.c
View file @
ef087934
...
@@ -32,25 +32,6 @@
...
@@ -32,25 +32,6 @@
*/
*/
static
WCHAR
sExeName
[
MAX_PATH
]
=
{
0
};
static
WCHAR
sExeName
[
MAX_PATH
]
=
{
0
};
static
GUID
gameInstanceId
;
static
GUID
gameInstanceId
;
static
HRESULT
WINAPI
(
*
pSHGetFolderPathW
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPWSTR
);
/*******************************************************************************
*_loadDynamicRoutines
*
* Helper function, prepares pointers to system procedures which may be not
* available on older operating systems.
*
* Returns:
* TRUE procedures were loaded successfully
* FALSE procedures were not loaded successfully
*/
static
BOOL
_loadDynamicRoutines
(
void
)
{
HMODULE
hModule
=
LoadLibraryA
(
"shell32.dll"
);
pSHGetFolderPathW
=
(
LPVOID
)
GetProcAddress
(
hModule
,
"SHGetFolderPathW"
);
if
(
!
pSHGetFolderPathW
)
return
FALSE
;
return
TRUE
;
}
/*******************************************************************************
/*******************************************************************************
* Registers test suite executable as game in Games Explorer. Required to test
* Registers test suite executable as game in Games Explorer. Required to test
...
@@ -117,7 +98,7 @@ static HRESULT _buildStatisticsFilePath(LPCGUID guidApplicationId, LPWSTR *lpSta
...
@@ -117,7 +98,7 @@ static HRESULT _buildStatisticsFilePath(LPCGUID guidApplicationId, LPWSTR *lpSta
HRESULT
hr
;
HRESULT
hr
;
WCHAR
sGuid
[
49
],
sPath
[
MAX_PATH
];
WCHAR
sGuid
[
49
],
sPath
[
MAX_PATH
];
hr
=
p
SHGetFolderPathW
(
NULL
,
CSIDL_LOCAL_APPDATA
,
NULL
,
SHGFP_TYPE_CURRENT
,
sPath
);
hr
=
SHGetFolderPathW
(
NULL
,
CSIDL_LOCAL_APPDATA
,
NULL
,
SHGFP_TYPE_CURRENT
,
sPath
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
hr
=
(
StringFromGUID2
(
guidApplicationId
,
sGuid
,
sizeof
(
sGuid
)
/
sizeof
(
sGuid
[
0
]))
!=
0
?
S_OK
:
E_FAIL
);
hr
=
(
StringFromGUID2
(
guidApplicationId
,
sGuid
,
sizeof
(
sGuid
)
/
sizeof
(
sGuid
[
0
]))
!=
0
?
S_OK
:
E_FAIL
);
...
@@ -396,14 +377,6 @@ START_TEST(gamestatistics)
...
@@ -396,14 +377,6 @@ START_TEST(gamestatistics)
IGameStatisticsMgr
*
gsm
;
IGameStatisticsMgr
*
gsm
;
IGameExplorer
*
ge
;
IGameExplorer
*
ge
;
if
(
!
_loadDynamicRoutines
())
{
/* this is not a failure, because a procedure loaded by address
* is always available on systems which has gameux.dll */
win_skip
(
"too old system, cannot load required dynamic procedures
\n
"
);
return
;
}
hr
=
CoInitialize
(
NULL
);
hr
=
CoInitialize
(
NULL
);
ok
(
hr
==
S_OK
,
"failed to init COM
\n
"
);
ok
(
hr
==
S_OK
,
"failed to init COM
\n
"
);
...
...
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