mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Don't show (win32 error 0)
This commit is contained in:
parent
9cad66aa11
commit
ca5e361919
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ errno_t strerror_r(int err, char *buf, size_t size) {
|
|||
// copy windows error information
|
||||
if (IsWindows()) {
|
||||
uint32_t winerr;
|
||||
if ((winerr = GetLastError()) != err) {
|
||||
if ((winerr = GetLastError()) != err && winerr) {
|
||||
stpcpy(FormatUint32(stpcpy(tmp, " (win32 error "), winerr), ")");
|
||||
msg = tmp;
|
||||
while ((c = *msg++) && p + 1 < pe) {
|
||||
|
|
Loading…
Add table
Reference in a new issue