If fileSize == 0 only one success reply sent

This commit is contained in:
Dmitry Isaenko 2020-05-10 20:40:50 +03:00
parent 1c6a7a094d
commit d5f6651620

View file

@ -219,6 +219,9 @@ class NxdtUsbAbi1 {
writeUsb(USBSTATUS_SUCCESS); writeUsb(USBSTATUS_SUCCESS);
if (fileSize == 0)
return;
if (isWindows10) if (isWindows10)
dumpFileOnWindowsTen(fileToDump, fileSize); dumpFileOnWindowsTen(fileToDump, fileSize);
else else