mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user