USB WritePort Does Not Set dwDataCompleted to 0 When Allocating New Buffer If Data Size Is Variable (272493)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q272493

SYMPTOMS

When you attempt to print to some Hewlett-Packard Universal Serial Bus (USB) printers, some of the data sent to the printer may be lost.

CAUSE

If the WritePort buffer size is larger than the buffer that was used on the previous call, the first buffer is freed and a new one is allocated. However, dwDataCompleted does not get reset to 0. This could cause data loss to the printer port.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

Modification Type:MajorLast Reviewed:11/14/2003
Keywords:kbbug kbfix kbWin2000PreSP2Fix KB272493