mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-25 09:28:22 +08:00
Fix not working comparison
This commit is contained in:
parent
53a0887112
commit
b60a49bef3
@ -27,10 +27,10 @@ int main(int argc, char *argv[])
|
|||||||
UINT8 result;
|
UINT8 result;
|
||||||
|
|
||||||
if (a.arguments().length() == 5) {
|
if (a.arguments().length() == 5) {
|
||||||
const QString &inputArg = a.arguments().at(1);
|
QString inputArg = a.arguments().at(1);
|
||||||
const QString &modeArg = a.arguments().at(2);
|
QString modeArg = a.arguments().at(2);
|
||||||
const QString &subModeArg = a.arguments().at(3);
|
QString subModeArg = a.arguments().at(3);
|
||||||
const QString &patternArg = a.arguments().at(4);
|
QString patternArg = a.arguments().at(4);
|
||||||
|
|
||||||
// Get search mode
|
// Get search mode
|
||||||
UINT8 mode;
|
UINT8 mode;
|
||||||
@ -72,9 +72,9 @@ int main(int argc, char *argv[])
|
|||||||
return U_SUCCESS;
|
return U_SUCCESS;
|
||||||
}
|
}
|
||||||
else if (a.arguments().length() == 4) {
|
else if (a.arguments().length() == 4) {
|
||||||
const QString &inputArg = a.arguments().at(1);
|
QString inputArg = a.arguments().at(1);
|
||||||
const QString &modeArg = a.arguments().at(2);
|
QString modeArg = a.arguments().at(2);
|
||||||
const QString &patternArg = a.arguments().at(3);
|
QString patternArg = a.arguments().at(3);
|
||||||
|
|
||||||
// Get search mode
|
// Get search mode
|
||||||
if (modeArg != QString("file"))
|
if (modeArg != QString("file"))
|
||||||
|
Loading…
Reference in New Issue
Block a user