Lines Matching refs:chars
87 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM
95 if (chars != 0) {
97 if (chars >= 2
98 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
99 chars -= 2;
100 msgbuf[chars] = 0;
103 if (chars > sizeof (buf) - 1) {
104 chars = sizeof (buf) - 1;
105 msgbuf[chars] = 0;
108 wcstombs(buf, msgbuf, chars + 1);