Comment 34 for bug 207137

Revision history for this message
Agostino Russo (ago) wrote :

Other odd thing. Isn't the buflen capped at 65536 bytes?

buflen = mTotalBytes - bytesWritten;
if (buflen > 65536) buflen = 65536;

...

char buf[buflen];
DWORD bytesRead = 0;
if (!ReadFile(mDeviceHandle, buf, sizeof(buf), &bytesRead, NULL))

Why is it that from the log each read is 17.5MB? Is this a logging artifact or is the stand-alone code slighltly different?