Skip to content

Commit

Permalink
changed a constant to be more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
F0903 committed Sep 10, 2024
1 parent 4bffd73 commit 82a20d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/power_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl WindowsService for PowerService {
let mut power_notif_handle = match RegisterPowerSettingNotification(
HANDLE(me.status_handle.unwrap().0),
&GUID_ACDC_POWER_SOURCE,
WindowsAndMessaging::REGISTER_NOTIFICATION_FLAGS(1),
WindowsAndMessaging::DEVICE_NOTIFY_SERVICE_HANDLE,
) {
Ok(x) => x,
Err(e) => {
Expand Down

0 comments on commit 82a20d7

Please sign in to comment.