Fix MSVC warning C4706: assignment within conditional expression

Part of #66537.
This commit is contained in:
Rémi Verschelde 2022-09-28 15:59:08 +02:00
parent 14e1f36e61
commit 0e53dd642c
8 changed files with 102 additions and 67 deletions

View file

@ -87,7 +87,8 @@ CommandLineToArgvA(
i = 0;
j = 0;
while ((a = CmdLine[i])) {
a = CmdLine[i];
while (a) {
if (in_QM) {
if (a == '\"') {
in_QM = FALSE;
@ -130,6 +131,7 @@ CommandLineToArgvA(
}
}
i++;
a = CmdLine[i];
}
_argv[j] = '\0';
argv[argc] = nullptr;