aboutsummaryrefslogtreecommitdiffstats
path: root/common/stringhelp.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/stringhelp.c')
-rw-r--r--common/stringhelp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/stringhelp.c b/common/stringhelp.c
index 3e56d664d..6959299e4 100644
--- a/common/stringhelp.c
+++ b/common/stringhelp.c
@@ -783,11 +783,6 @@ w32_strerror (int ec)
if (ec == -1)
ec = (int)GetLastError ();
-#ifdef HAVE_W32CE_SYSTEM
- /* There is only a wchar_t FormatMessage. It does not make much
- sense to play the conversion game; we print only the code. */
- snprintf (strerr, sizeof strerr, "ec=%d", (int)GetLastError ());
-#else
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, ec,
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
strerr, DIM (strerr)-1, NULL);
@@ -797,7 +792,6 @@ w32_strerror (int ec)
if (n > 2 && strerr[n-2] == '\r' && strerr[n-1] == '\n' )
strerr[n-2] = 0;
}
-#endif
return strerr;
}
#endif /*HAVE_W32_SYSTEM*/