27 Feb
2023
27 Feb
'23
8:50 p.m.
Brendan Shanks (@bshanks) commented about dlls/ntdll/unix/system.c:
static NTSTATUS fill_battery_state( SYSTEM_BATTERY_STATE *bs ) { - CFArrayRef batteries; - CFDictionaryRef battery; - CFNumberRef prop; - uint32_t value, voltage; - CFTimeInterval remain; - - if (IOPMCopyBatteryInfo( 0, &batteries ) != kIOReturnSuccess) + CFTypeRef blob = IOPSCopyPowerSourcesInfo(); + CFArrayRef sources = IOPSCopyPowerSourcesList( blob ); + CFDictionaryRef source = NULL; + CFTypeRef prop; + Boolean is_charging; + int32_t value, voltage; + All the blank lines in the patch have spaces, they should be empty
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2283#note_25621