https://git.reactos.org/?p=reactos.git;a=commitdiff;h=da699be4c44d9d077355a…
commit da699be4c44d9d077355a772ed00a2c822957eb8
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Wed Dec 29 03:13:55 2021 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Dec 29 04:02:28 2021 +0100
[ATTRIB] Formatting only.
---
base/applications/cmdutils/attrib/attrib.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/base/applications/cmdutils/attrib/attrib.c
b/base/applications/cmdutils/attrib/attrib.c
index 6eaf053b95a..fc53e68dfbc 100644
--- a/base/applications/cmdutils/attrib/attrib.c
+++ b/base/applications/cmdutils/attrib/attrib.c
@@ -120,7 +120,9 @@ PrintAttribute(
Error = GetLastError();
if ((Error != ERROR_DIRECTORY) && (Error != ERROR_SHARING_VIOLATION)
&& (Error != ERROR_FILE_NOT_FOUND))
+ {
ErrorMessage(Error, pszFile);
+ }
return FALSE;
}
@@ -131,7 +133,9 @@ PrintAttribute(
if (!wcscmp(findData.cFileName, L".") ||
!wcscmp(findData.cFileName, L".."))
+ {
continue;
+ }
wcscpy(pszFileName, findData.cFileName);
wcscat(pszFileName, L"\\");
@@ -161,7 +165,9 @@ PrintAttribute(
if (!wcscmp(findData.cFileName, L".") ||
!wcscmp(findData.cFileName, L".."))
+ {
continue;
+ }
wcscpy(pszFileName, findData.cFileName);
@@ -174,7 +180,7 @@ PrintAttribute(
szFullName);
bFound = TRUE;
}
- while(FindNextFileW(hFind, &findData));
+ while (FindNextFileW(hFind, &findData));
FindClose(hFind);
return bFound;
@@ -218,7 +224,9 @@ ChangeAttribute(
Error = GetLastError();
if ((Error != ERROR_DIRECTORY) && (Error != ERROR_SHARING_VIOLATION)
&& (Error != ERROR_FILE_NOT_FOUND))
+ {
ErrorMessage(Error, pszFile);
+ }
return FALSE;
}
@@ -229,7 +237,9 @@ ChangeAttribute(
if (!wcscmp(findData.cFileName, L".") ||
!wcscmp(findData.cFileName, L".."))
+ {
continue;
+ }
wcscpy(pszFileName, findData.cFileName);
wcscat(pszFileName, L"\\");
@@ -260,7 +270,9 @@ ChangeAttribute(
if (!wcscmp(findData.cFileName, L".") ||
!wcscmp(findData.cFileName, L".."))
+ {
continue;
+ }
if (bRecurse && bIsDir && !bDirectories)
continue;
@@ -272,7 +284,7 @@ ChangeAttribute(
SetFileAttributes(szFullName, dwAttribute);
bFound = TRUE;
}
- while(FindNextFileW(hFind, &findData));
+ while (FindNextFileW(hFind, &findData));
FindClose(hFind);
return bFound;