View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003404 | NetDCU-USB-Loader | Tool/Utility | public | 2018-04-23 06:29 | 2020-05-27 07:49 |
Reporter | zutter | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | V2.4 | ||||
Target Version | V2.5 | Fixed in Version | V2.4 | ||
Summary | 0003404: Command line parameter for download file is not recognized | ||||
Description | Command line parameter for download file is not recognized any more. Seems to work up to V2.2. | ||||
Steps To Reproduce | bLast will never be true: for (int i = 1; i < __argc; i++) { LPCTSTR pszParam = __targv[i]; BOOL bFlag = FALSE; BOOL bLast = ((i + 1) == __argc); if (pszParam[0] == '-' || pszParam[0] == '/') { // remove flag specifier bFlag = TRUE; ++pszParam; if (lstrcmpiA(pszParam, "auto") == 0) { dlg.SetTransmitAuto( TRUE ); } else if (lstrcmpiA(pszParam, "noflashwait") == 0) { dlg.SetWaitForFlash( TRUE ); } else if (lstrcmpiA(pszParam, "WCEMAC") == 0) { if ((i+1) < __argc) { LPCTSTR pszMAC = __targv[i+1]; dlg.SetParamWCEMAC(pszMAC); i++; bLast = FALSE; } } } else { if( bLast ) { dlg.SetDefaultDownFile( pszParam ); } } } | ||||
Forum Link | |||||