We are using 4.26.02.
Under Vista, sometimes the driver names are very long. We are calling GetRecordDriverInfo() with a namelen field value of MAXPNAMELEN, which is 32. The buffer has been declared with a length of MAXPNAMELEN as well.
After calling GetRecordDriverInfo(), the 32nd character in the buffer is not set to the 32nd character of the name of the driver, nor is it set to 0.
- rcohen asked 9 years ago
Ok that is a simple fix, I will address that for our next release.
Usually when people pass in the buffer to write to they memset it, we copy length – 1 into your buffer. So the other char at the end you are seeing is uninitialized variable data.
Please login first to submit.