mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +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
|
// copy windows error information
|
||||||
if (IsWindows()) {
|
if (IsWindows()) {
|
||||||
uint32_t winerr;
|
uint32_t winerr;
|
||||||
if ((winerr = GetLastError()) != err) {
|
if ((winerr = GetLastError()) != err && winerr) {
|
||||||
stpcpy(FormatUint32(stpcpy(tmp, " (win32 error "), winerr), ")");
|
stpcpy(FormatUint32(stpcpy(tmp, " (win32 error "), winerr), ")");
|
||||||
msg = tmp;
|
msg = tmp;
|
||||||
while ((c = *msg++) && p + 1 < pe) {
|
while ((c = *msg++) && p + 1 < pe) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue