Reports also numeric errno in Windows.

This commit is contained in:
Andrea Mazzoleni 2014-10-12 10:50:33 +02:00
parent 21a88175d5
commit 4a09094f60

View file

@ -1448,7 +1448,7 @@ const char* windows_strerror(int err)
if (!last_error)
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;
}