View Issue Details

IDProjectCategoryView StatusLast Update
0003404NetDCU-USB-LoaderTool/Utilitypublic2020-05-27 07:49
Reporterzutter Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionV2.4 
Target VersionV2.5Fixed in VersionV2.4 
Summary0003404: Command line parameter for download file is not recognized
DescriptionCommand line parameter for download file is not recognized any more. Seems to work up to V2.2.
Steps To ReproducebLast 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

Activities

There are no notes attached to this issue.