In usbOpenDevice(), clear the error code when returning successfully.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@705 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2006-12-21 21:21:14 +00:00
parent 6524723327
commit 0d9df51e88
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de>
Submitted by Christian Starkjohann:
* ser_avrdoper.c (usbOpenDevice): clear the error code when
returning successfully.
2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de> 2006-12-21 Joerg Wunsch <j@uriah.heep.sax.de>
Submitted by Christian Starkjohann: Submitted by Christian Starkjohann:

View File

@ -179,6 +179,7 @@ static int usbOpenDevice(union filedescriptor *fdp, int vendor, char *vendorName
free(deviceDetails); free(deviceDetails);
if(handle != INVALID_HANDLE_VALUE){ if(handle != INVALID_HANDLE_VALUE){
fdp->pfd = (void *)handle; fdp->pfd = (void *)handle;
errorCode = 0;
} }
return errorCode; return errorCode;
} }