sicreative / BatteryStatusShow

View MacOS and IOS battery Information
GNU General Public License v3.0
320 stars 25 forks source link

Fixed improper unfair lock initialization that crashes smcutil on macOS Monterey #5

Closed NSKernel closed 2 years ago

NSKernel commented 2 years ago

smcutil will crash on macOS Monterey (12.0.1) due to an uninitialized unfair lock on the stack. This patch fixes it by properly initializing the lock.

sicreative commented 2 years ago

Fixed improper unfair lock initialization that crashes smcutil on macOS Monterey