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
0fb31cfc
Commit
0fb31cfc
authored
Jul 02, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jul 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.devices.bluetooth: Implement IBluetoothAdapterStatics::GetDeviceSelector().
Needed for Revo Scan 5.
parent
b0582743
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
bluetoothadapter.c
dlls/windows.devices.bluetooth/bluetoothadapter.c
+7
-2
bluetooth.c
dlls/windows.devices.bluetooth/tests/bluetooth.c
+4
-4
No files found.
dlls/windows.devices.bluetooth/bluetoothadapter.c
View file @
0fb31cfc
...
@@ -119,8 +119,13 @@ DEFINE_IINSPECTABLE( bluetoothadapter_statics, IBluetoothAdapterStatics, struct
...
@@ -119,8 +119,13 @@ DEFINE_IINSPECTABLE( bluetoothadapter_statics, IBluetoothAdapterStatics, struct
static
HRESULT
WINAPI
bluetoothadapter_statics_GetDeviceSelector
(
IBluetoothAdapterStatics
*
iface
,
HSTRING
*
result
)
static
HRESULT
WINAPI
bluetoothadapter_statics_GetDeviceSelector
(
IBluetoothAdapterStatics
*
iface
,
HSTRING
*
result
)
{
{
FIXME
(
"iface %p, result %p stub!
\n
"
,
iface
,
result
);
static
const
WCHAR
*
default_res
=
L"System.Devices.InterfaceClassGuid:=
\"
{92383B0E-F90E-4AC9-8D44-8C2D0D0EBDA2}
\"
"
return
E_NOTIMPL
;
L"AND System.Devices.InterfaceEnabled:=System.StructuredQueryType.Boolean#True"
;
TRACE
(
"iface %p, result %p.
\n
"
,
iface
,
result
);
if
(
!
result
)
return
E_POINTER
;
return
WindowsCreateString
(
default_res
,
wcslen
(
default_res
),
result
);
}
}
static
HRESULT
WINAPI
bluetoothadapter_statics_FromIdAsync
(
IBluetoothAdapterStatics
*
iface
,
HSTRING
id
,
IAsyncOperation_BluetoothAdapter
**
operation
)
static
HRESULT
WINAPI
bluetoothadapter_statics_FromIdAsync
(
IBluetoothAdapterStatics
*
iface
,
HSTRING
id
,
IAsyncOperation_BluetoothAdapter
**
operation
)
...
...
dlls/windows.devices.bluetooth/tests/bluetooth.c
View file @
0fb31cfc
...
@@ -87,14 +87,14 @@ static void test_BluetoothAdapterStatics(void)
...
@@ -87,14 +87,14 @@ static void test_BluetoothAdapterStatics(void)
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IBluetoothAdapterStatics_GetDeviceSelector
(
bluetoothadapter_statics
,
NULL
);
hr
=
IBluetoothAdapterStatics_GetDeviceSelector
(
bluetoothadapter_statics
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
IBluetoothAdapterStatics_GetDeviceSelector
(
bluetoothadapter_statics
,
&
str
);
hr
=
IBluetoothAdapterStatics_GetDeviceSelector
(
bluetoothadapter_statics
,
&
str
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCreateString
(
default_res
,
wcslen
(
default_res
),
&
default_str
);
hr
=
WindowsCreateString
(
default_res
,
wcslen
(
default_res
),
&
default_str
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
hr
=
WindowsCompareStringOrdinal
(
str
,
default_str
,
&
res
);
hr
=
WindowsCompareStringOrdinal
(
str
,
default_str
,
&
res
);
todo_wine
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
str
)
);
ok
(
!
res
,
"got unexpected string %s.
\n
"
,
debugstr_hstring
(
str
)
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
str
);
WindowsDeleteString
(
default_str
);
WindowsDeleteString
(
default_str
);
...
...
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