trivial changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
2aaca0c54a
commit
3e8c5d3b79
@ -139,7 +139,7 @@ impl MagInterface {
|
|||||||
return Err(Error::new(
|
return Err(Error::new(
|
||||||
ErrorKind::Other,
|
ErrorKind::Other,
|
||||||
format!(
|
format!(
|
||||||
"Failed to LoadLibraryExA {}, error: {}",
|
"Failed to LoadLibraryExA {}, error {}",
|
||||||
lib_file_name,
|
lib_file_name,
|
||||||
Error::last_os_error()
|
Error::last_os_error()
|
||||||
),
|
),
|
||||||
@ -173,7 +173,7 @@ impl MagInterface {
|
|||||||
if FALSE == init_func() {
|
if FALSE == init_func() {
|
||||||
return Err(Error::new(
|
return Err(Error::new(
|
||||||
ErrorKind::Other,
|
ErrorKind::Other,
|
||||||
format!("Failed to MagInitialize, error: {}", Error::last_os_error()),
|
format!("Failed to MagInitialize, error {}", Error::last_os_error()),
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
s.init_succeeded = true;
|
s.init_succeeded = true;
|
||||||
@ -346,7 +346,7 @@ impl CapturerMag {
|
|||||||
return Err(Error::new(
|
return Err(Error::new(
|
||||||
ErrorKind::Other,
|
ErrorKind::Other,
|
||||||
format!(
|
format!(
|
||||||
"Failed to RegisterClassExA, error {:?}",
|
"Failed to RegisterClassExA, error {}",
|
||||||
Error::from_raw_os_error(code as _)
|
Error::from_raw_os_error(code as _)
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
@ -1700,7 +1700,7 @@ pub fn create_process_with_logon(user: &str, pwd: &str, exe: &str, arg: &str) ->
|
|||||||
{
|
{
|
||||||
let last_error = GetLastError();
|
let last_error = GetLastError();
|
||||||
bail!(
|
bail!(
|
||||||
"CreateProcessWithLogonW failed : \"{}\", error {:?}",
|
"CreateProcessWithLogonW failed : \"{}\", error {}",
|
||||||
last_error_table
|
last_error_table
|
||||||
.get(&last_error)
|
.get(&last_error)
|
||||||
.unwrap_or(&"Unknown error"),
|
.unwrap_or(&"Unknown error"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user