mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-21 04:01:01 +03:00
Remove get_error() in windows.rs
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -195,7 +195,7 @@ impl PrivacyModeImpl {
|
||||
)
|
||||
{
|
||||
bail!(
|
||||
"Failed EnumDisplaySettingsW, device name: {:?}, error: {:?}",
|
||||
"Failed EnumDisplaySettingsW, device name: {:?}, error: {}",
|
||||
std::string::String::from_utf16(&display.name),
|
||||
Error::last_os_error()
|
||||
);
|
||||
@@ -229,7 +229,7 @@ impl PrivacyModeImpl {
|
||||
== EnumDisplaySettingsW(dd.DeviceName.as_ptr(), ENUM_CURRENT_SETTINGS, &mut dm)
|
||||
{
|
||||
bail!(
|
||||
"Failed EnumDisplaySettingsW, device name: {:?}, error: {:?}",
|
||||
"Failed EnumDisplaySettingsW, device name: {:?}, error: {}",
|
||||
std::string::String::from_utf16(&dd.DeviceName),
|
||||
Error::last_os_error()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user