From d5f6651620f094b10cb87b52cdcee776eb7b6eec Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Sun, 10 May 2020 20:40:50 +0300 Subject: [PATCH] If fileSize == 0 only one success reply sent --- src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java index afea175..1282571 100644 --- a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java +++ b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java @@ -219,6 +219,9 @@ class NxdtUsbAbi1 { writeUsb(USBSTATUS_SUCCESS); + if (fileSize == 0) + return; + if (isWindows10) dumpFileOnWindowsTen(fileToDump, fileSize); else