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
377aac9c
Commit
377aac9c
authored
Nov 23, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twinapi.appcore: Implement Windows.System.Profile.AnalyticsInfo_get_DeviceFamily.
parent
f082ff9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
analytics_info.c
dlls/twinapi.appcore/analytics_info.c
+2
-2
twinapi.c
dlls/twinapi.appcore/tests/twinapi.c
+12
-1
No files found.
dlls/twinapi.appcore/analytics_info.c
View file @
377aac9c
...
...
@@ -89,8 +89,8 @@ static HRESULT WINAPI analytics_version_info_GetTrustLevel( IAnalyticsVersionInf
static
HRESULT
WINAPI
analytics_version_info_get_DeviceFamily
(
IAnalyticsVersionInfo
*
iface
,
HSTRING
*
value
)
{
FIXME
(
"iface %p, value %p stub!
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, value %p
\n
"
,
iface
,
value
);
return
WindowsCreateString
(
L"Windows.Desktop"
,
wcslen
(
L"Windows.Desktop"
),
value
)
;
}
static
HRESULT
WINAPI
analytics_version_info_get_DeviceFamilyVersion
(
IAnalyticsVersionInfo
*
iface
,
HSTRING
*
value
)
...
...
dlls/twinapi.appcore/tests/twinapi.c
View file @
377aac9c
...
...
@@ -117,8 +117,9 @@ static void test_AnalyticsVersionInfo(void)
IAnalyticsInfoStatics
*
analytics_info_statics
;
IAnalyticsVersionInfo
*
analytics_version_info
;
IActivationFactory
*
factory
;
HSTRING
str
;
HSTRING
str
,
expect_str
;
HRESULT
hr
;
INT32
res
;
LONG
ref
;
hr
=
WindowsCreateString
(
class_name
,
wcslen
(
class_name
),
&
str
);
...
...
@@ -147,6 +148,16 @@ static void test_AnalyticsVersionInfo(void)
check_interface
(
analytics_version_info
,
&
IID_IInspectable
,
TRUE
);
check_interface
(
analytics_version_info
,
&
IID_IAgileObject
,
TRUE
);
hr
=
WindowsCreateString
(
L"Windows.Desktop"
,
wcslen
(
L"Windows.Desktop"
),
&
expect_str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IAnalyticsVersionInfo_get_DeviceFamily
(
analytics_version_info
,
&
str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
expect_str
,
&
res
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
str
)
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
expect_str
);
ref
=
IAnalyticsVersionInfo_Release
(
analytics_version_info
);
ok
(
ref
==
0
,
"got ref %ld.
\n
"
,
ref
);
...
...
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