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
13cc08e3
Commit
13cc08e3
authored
Nov 08, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Nov 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Stop using deprecated kIOMasterPortDefault constant.
parent
3873d434
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cdrom.c
dlls/ntdll/unix/cdrom.c
+1
-1
system.c
dlls/ntdll/unix/system.c
+3
-3
No files found.
dlls/ntdll/unix/cdrom.c
View file @
13cc08e3
...
...
@@ -367,7 +367,7 @@ static NTSTATUS get_parent_device( int fd, char *name, size_t len )
CFDictionaryAddValue
(
dict
,
CFSTR
(
"Removable"
),
kCFBooleanTrue
);
service
=
IOServiceGetMatchingService
(
kIOMasterPortDefault
,
dict
);
service
=
IOServiceGetMatchingService
(
0
,
dict
);
/* now look for the parent that has the "Whole" attribute set to TRUE */
...
...
dlls/ntdll/unix/system.c
View file @
13cc08e3
...
...
@@ -1632,7 +1632,7 @@ static NTSTATUS get_smbios_from_iokit( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti,
struct
smbios_prologue
*
prologue
;
BYTE
major_version
=
2
,
minor_version
=
0
;
if
(
!
(
service
=
IOServiceGetMatchingService
(
kIOMasterPortDefault
,
IOServiceMatching
(
"AppleSMBIOS"
))))
if
(
!
(
service
=
IOServiceGetMatchingService
(
0
,
IOServiceMatching
(
"AppleSMBIOS"
))))
{
WARN
(
"can't find AppleSMBIOS service
\n
"
);
return
STATUS_NO_MEMORY
;
...
...
@@ -1727,7 +1727,7 @@ static NTSTATUS generate_smbios( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULONG
struct
smbios_board_args
board_args
;
struct
smbios_chassis_args
chassis_args
;
platform_expert
=
IOServiceGetMatchingService
(
kIOMasterPortDefault
,
IOServiceMatching
(
"IOPlatformExpertDevice"
));
platform_expert
=
IOServiceGetMatchingService
(
0
,
IOServiceMatching
(
"IOPlatformExpertDevice"
));
if
(
!
platform_expert
)
return
STATUS_NO_MEMORY
;
...
...
@@ -3493,7 +3493,7 @@ static NTSTATUS fill_battery_state( SYSTEM_BATTERY_STATE *bs )
uint32_t
value
,
voltage
;
CFTimeInterval
remain
;
if
(
IOPMCopyBatteryInfo
(
kIOMasterPortDefault
,
&
batteries
)
!=
kIOReturnSuccess
)
if
(
IOPMCopyBatteryInfo
(
0
,
&
batteries
)
!=
kIOReturnSuccess
)
return
STATUS_ACCESS_DENIED
;
if
(
CFArrayGetCount
(
batteries
)
==
0
)
...
...
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