[ATTRIB] Fix bFound assignment, as it was originally intended by the PR reviewer.

See https://github.com/reactos/reactos/pull/2142#discussion_r360645296

This fixes the two warnings:
warning C4552: '!=': result of expression not used
This commit is contained in:
Hermès Bélusca-Maïto 2021-12-29 03:17:57 +01:00
parent da699be4c4
commit 0db5fce47d
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -139,7 +139,7 @@ PrintAttribute(
wcscpy(pszFileName, findData.cFileName);
wcscat(pszFileName, L"\\");
bFound != PrintAttribute(szFullName, pszFile, bRecurse, bDirectories);
bFound |= PrintAttribute(szFullName, pszFile, bRecurse, bDirectories);
}
while (FindNextFileW(hFind, &findData));
FindClose(hFind);
@ -243,7 +243,7 @@ ChangeAttribute(
wcscpy(pszFileName, findData.cFileName);
wcscat(pszFileName, L"\\");
bFound != ChangeAttribute(szFullName, pszFile, bRecurse, bDirectories,
bFound |= ChangeAttribute(szFullName, pszFile, bRecurse, bDirectories,
dwMask, dwAttrib);
}
while (FindNextFileW(hFind, &findData));