X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f81c82c342ce9d6131582039d22533ba1802dbfc..0422e2a47109a7845998c2130ae40c6d04e56d09:/winsrc/prox.cpp diff --git a/winsrc/prox.cpp b/winsrc/prox.cpp index e2c0a79c..bbc9adbd 100644 --- a/winsrc/prox.cpp +++ b/winsrc/prox.cpp @@ -194,6 +194,7 @@ void SendCommand(UsbCommand *c, BOOL wantAck) DWORD written; OVERLAPPED ov; + memset(&ov, 0, sizeof(ov)); WriteFile(UsbHandle, buf, 65, &written, &ov); if(GetLastError() != ERROR_IO_PENDING) { @@ -229,8 +230,6 @@ static void FlushPrevious(void) UsbCommand c; memset(&c, 0, sizeof(c)); - printf("expected = %08x flush, ", ExpectedAddr); - int i; for(i = 0; i < 240; i += 48) { c.cmd = CMD_SETUP_WRITE; @@ -241,7 +240,7 @@ static void FlushPrevious(void) c.cmd = CMD_FINISH_WRITE; c.ext1 = (ExpectedAddr-1) & (~255); - printf("c.ext1 = %08x\r", c.ext1); + printf("Flashing address: %08x\r", c.ext1); memcpy(c.d.asBytes, QueuedToSend+240, 16); SendCommand(&c, TRUE);