0
0

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.

Thanks!

  - Rick
  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Thanks Mathew!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.