Lines Matching refs:chars
40 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
48 if (chars != 0) {
50 if (chars >= 2
51 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
52 chars -= 2;
53 msgbuf[chars] = 0;
56 if (chars > sizeof (buf) - 1) {
57 chars = sizeof (buf) - 1;
58 msgbuf[chars] = 0;
61 wcstombs(buf, msgbuf, chars + 1);