You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2022/12/08 13:14:39 UTC

[netbeans-native-installers] 09/19: Cleaner: Fixed spelling error in constant: MAX_ATTEPTS --> MAX_ATTEMPTS

This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-native-installers.git

commit 5d455518b6466dc0fc6cfd60c442b3018482b5c9
Author: Lars Bruun-Hansen <lb...@apache.org>
AuthorDate: Sat Sep 14 10:48:24 2019 +0200

    Cleaner: Fixed spelling error in constant: MAX_ATTEPTS --> MAX_ATTEMPTS
---
 cleaner/windows/src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cleaner/windows/src/main.c b/cleaner/windows/src/main.c
index a94a094..fb3d93c 100644
--- a/cleaner/windows/src/main.c
+++ b/cleaner/windows/src/main.c
@@ -23,7 +23,7 @@
 
 
 const DWORD SLEEP_DELAY   = 200;
-const DWORD MAX_ATTEPTS   = 15;
+const DWORD MAX_ATTEMPTS   = 15;
 const DWORD THREAD_FINISHED = 100;
 const DWORD INITIAL_DELAY = 2000; // 2 seconds is seems to be enough to finish java process
 const WCHAR * LINE_SEPARATOR = L"\r\n";
@@ -290,11 +290,11 @@ void deleteFile(WCHAR * filePath) {
     if(GetFileAttributesExW(file, GetFileExInfoStandard, &attrs)) {
         if(attrs.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
             while((!RemoveDirectoryW(file) || GetFileAttributesExW(file, GetFileExInfoStandard, &attrs)) &&
-                ((count++) < MAX_ATTEPTS))
+                ((count++) < MAX_ATTEMPTS))
                 Sleep(SLEEP_DELAY);
         else
             while((!DeleteFileW(file) || GetFileAttributesExW(file, GetFileExInfoStandard, &attrs)) &&
-                ((count++) < MAX_ATTEPTS))
+                ((count++) < MAX_ATTEMPTS))
                 Sleep(SLEEP_DELAY);
     }
     LocalFree(file);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists