mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Fix screens infinite loop when retrieving monitor name
This commit is contained in:
parent
760b58726a
commit
aa97009c35
1 changed files with 1 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ func getMonitorName(deviceName string) (string, error) {
|
|||
if device.StateFlags&0x1 != 0 {
|
||||
return syscall.UTF16ToString(device.DeviceString[:]), nil
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
return "", fmt.Errorf("monitor name not found for device: %s", deviceName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue