From d5e31fce50c3bb5939b136741d8cbd9879c3a87a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 16 Sep 2001 23:54:58 +0000 Subject: [PATCH] Eliminated useless _doserrno from errormsg(). --- src/sbbs3/str.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/str.cpp b/src/sbbs3/str.cpp index 301ae11410..e0c9787104 100644 --- a/src/sbbs3/str.cpp +++ b/src/sbbs3/str.cpp @@ -919,13 +919,14 @@ void sbbs_t::errormsg(int line, char *source, char action, char *object if(errno) { sprintf(tmp,"\r\n errno: %d",errno); strcat(str,tmp); + errno=0; } -#if defined(__MSDOS__) || defined(_WIN32) +#if defined(__MSDOS__) if(_doserrno && _doserrno!=(ulong)errno) { sprintf(tmp,"\r\n doserrno: %d",_doserrno); strcat(str,tmp); } - errno=_doserrno=0; + _doserrno=0; #endif #if defined(_WIN32) if(GetLastError()!=0) { -- GitLab