Lines Matching refs:chars
43 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
51 if (chars != 0) {
53 if (chars >= 2
54 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
55 chars -= 2;
56 msgbuf[chars] = 0;
59 if (chars > sizeof (buf) - 1) {
60 chars = sizeof (buf) - 1;
61 msgbuf[chars] = 0;
64 wcstombs(buf, msgbuf, chars + 1);