mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00: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:
parent
da699be4c4
commit
0db5fce47d
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue