FormatMessage() is only available under Win32; some code needed rearranging
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9876
dc483132-0cff-0310-8789-
dd5450dbe970
}
#if defined(_MSDOS) || defined(_WIN32)
+ /*
+ * WinSock errors exist in the 10000 and 11000 ranges
+ * but might not appear if WinSock is not initialized
+ */
+ if (code < 12000) {
+ table_num = 0;
+ offset = code;
+ divisor = 10000;
+ }
+#endif
+#ifdef _WIN32
{
LPVOID msgbuf;
*cp++ = ' ';
}
while (divisor > 1) {
- fprintf(stderr, "divisor %d, offset %d\n", divisor, offset);
if (started || offset >= divisor) {
*cp++ = '0' + offset / divisor;
offset %= divisor;
}
divisor /= 10;
}
- fprintf(stderr, "divisor %d, offset %d\n", divisor, offset);
*cp++ = '0' + offset;
*cp = '\0';
return(buffer);