mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Reports also numeric errno in Windows.
This commit is contained in:
parent
21a88175d5
commit
4a09094f60
1 changed files with 1 additions and 1 deletions
|
|
@ -1448,7 +1448,7 @@ const char* windows_strerror(int err)
|
||||||
if (!last_error)
|
if (!last_error)
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
snprintf(last_error, len, "%s [%u]", str, (unsigned)GetLastError());
|
snprintf(last_error, len, "%s [%d/%u]", str, err, (unsigned)GetLastError());
|
||||||
return last_error;
|
return last_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue