Lines Matching defs:chars
83 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
91 if (chars != 0) {
93 if (chars >= 2
94 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
95 chars -= 2;
96 msgbuf[chars] = 0;
99 if (chars > sizeof (buf) - 1) {
100 chars = sizeof (buf) - 1;
101 msgbuf[chars] = 0;
104 wcstombs(buf, msgbuf, chars + 1);