Changeset 32
- Timestamp:
- 10/10/2007 10:58:03 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
Eraser.cpp (modified) (1 diff)
-
EraserDll/Eraser.cpp (modified) (4 diffs)
-
EraserDll/FileLockResolver.cpp (modified) (1 diff)
-
EraserDll/FreeSpace.cpp (modified) (4 diffs)
-
EraserDoc.cpp (modified) (1 diff)
-
EraserUI/NewDialog.cpp (modified) (1 diff)
-
Erasext/ErasextMenu.cpp (modified) (2 diffs)
-
HotKeyDlg.cpp (modified) (3 diffs)
-
HotKeyDlg.h (modified) (1 diff)
-
TaskPropertySheet.cpp (modified) (1 diff)
-
shared/key.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Eraser.cpp
r23 r32 1 1 // Eraser.cpp 2 // $Id$ 2 3 // 3 4 // Eraser. Secure data removal. For Windows. 4 5 // Copyright © 1997-2001 Sami Tolvanen (sami@tolvanen.com). 5 // Copyright © 2002 Garrett Trant (support@heidi.ie). 6 // Copyright © 2001-2006 Garrett Trant (support@heidi.ie). 7 // Copyright © 2007 The Eraser Project 6 8 // 7 9 // This program is free software; you can redistribute it and/or -
trunk/EraserDll/Eraser.cpp
r20 r32 1 using namespace System::Runtime::Serialization;2 1 // Eraser.cpp 3 2 // 4 3 // Eraser. Secure data removal. For Windows. 5 4 // Copyright © 1997-2001 Sami Tolvanen (sami@tolvanen.com). 5 // Copyright © 2007 The Eraser Project 6 6 // 7 7 // This program is free software; you can redistribute it and/or … … 48 48 #endif 49 49 50 #undef MAX_PATH 51 #define MAX_PATH 2048 //HACK: Some filenames under Vista can exceed the 260 52 //char limit. This will have to do for now. 50 53 51 54 ///////////////////////////////////////////////////////////////////////////// … … 722 725 // drive must be given as "X:\\" 723 726 724 // In thi needed for UNC files? 725 //if (!isalpha(szItem[0]) || szItem[1] != ':' || szItem[2] != '\\') { 726 // return ERASER_ERROR_PARAM2; 727 //} 727 if (!isalpha(szItem[0]) || szItem[1] != ':' || szItem[2] != '\\') { 728 return ERASER_ERROR_PARAM2; 729 } 728 730 729 731 eraserContextAccess(context); … … 2464 2466 return; 2465 2467 2466 srand( time(NULL));2468 srand((unsigned int)time(NULL)); 2467 2469 for (int retries = 10; retries > 0; retries--) { 2468 2470 CFile file; -
trunk/EraserDll/FileLockResolver.cpp
r4 r32 155 155 156 156 } 157 void 158 CFileLockResolver::Resolve(LPCTSTR szFileName) 157 158 void 159 CFileLockResolver::Resolve(LPCTSTR /*szFileName*/) 159 160 { 160 161 -
trunk/EraserDll/FreeSpace.cpp
r4 r32 3 3 // Eraser. Secure data removal. For Windows. 4 4 // Copyright © 1997-2001 Sami Tolvanen (sami@tolvanen.com). 5 // Copyright © 2007 The Eraser Project 5 6 // 6 7 // This program is free software; you can redistribute it and/or … … 37 38 = "DisableLowDiskSpaceBroadcast"; 38 39 40 #undef MAX_PATH 41 #define MAX_PATH 2048 //HACK: Some filenames under Vista can exceed the 260 42 //char limit. This will have to do for now. 43 39 44 static inline E_UINT32 40 45 disableLowDiskSpaceNotification(TCHAR szDrive) … … 232 237 } 233 238 239 // skip volume mount point 240 if (bitSet(wfdData.dwFileAttributes, FILE_ATTRIBUTE_REPARSE_POINT)) { 241 continue; 242 } 234 243 if (bitSet(wfdData.dwFileAttributes, FILE_ATTRIBUTE_DIRECTORY)) { 235 244 // skip "." and ".." … … 292 301 293 302 if (bitSet(wfdData.dwFileAttributes, FILE_ATTRIBUTE_DIRECTORY)) { 303 // skip volume mount point 304 if (bitSet(wfdData.dwFileAttributes, FILE_ATTRIBUTE_REPARSE_POINT)) { 305 strFile = strDirectory + wfdData.cFileName; 306 context->m_saFailed.Add(strFile + " (Reparse point)"); 307 continue; 308 } 294 309 // skip "." and ".." 295 310 if (ISNT_SUBFOLDER(wfdData.cFileName)) { -
trunk/EraserDoc.cpp
r31 r32 28 28 #include "shared\utils.h" 29 29 #include "PreferencesSheet.h" 30 #include "EraserUI\FileDialogEx.h"31 30 #include "EraserUI\TimeOutMessageBox.h" 32 31 #include "EraserDoc.h" -
trunk/EraserUI/NewDialog.cpp
r27 r32 101 101 } 102 102 103 void CNewDialog::OnTvnSelchangedTree1(NMHDR * pNMHDR, LRESULT *pResult)103 void CNewDialog::OnTvnSelchangedTree1(NMHDR * /*pNMHDR*/, LRESULT *pResult) 104 104 { 105 105 //LPNMTREEVIEW pNMTreeView = reinterpret_cast<LPNMTREEVIEW>(pNMHDR); -
trunk/Erasext/ErasextMenu.cpp
r26 r32 529 529 530 530 void 531 CErasextMenu::getstr_handle_erase(UINT nType, CString& cmdstr)531 CErasextMenu::getstr_handle_erase(UINT /*nType*/, CString& cmdstr) 532 532 { 533 533 if (m_bUseFiles) … … 544 544 545 545 } 546 546 547 void 547 CErasextMenu::getstr_handle_move(UINT nType, CString& cmdstr)548 CErasextMenu::getstr_handle_move(UINT /*nType*/, CString& cmdstr) 548 549 { 549 550 -
trunk/HotKeyDlg.cpp
r29 r32 149 149 DWORD count = 0; 150 150 kReg.GetValue(count, "__count", 0); 151 for ( inti = 0; i < count; i++) {151 for (DWORD i = 0; i < count; i++) { 152 152 CString temp, key, value; 153 153 temp.Format("__key_%ld", i); … … 242 242 243 243 IMPLEMENT_DYNAMIC(CHotKeyDlg, CDialog) 244 CHotKeyDlg::CHotKeyDlg(CWnd* pParent /*=NULL*/ , int iValCnt)244 CHotKeyDlg::CHotKeyDlg(CWnd* pParent /*=NULL*/) 245 245 : CDialog(CHotKeyDlg::IDD, pParent),m_arKeyValues(),m_lcHotKeys() 246 246 { … … 313 313 314 314 315 void CHotKeyDlg::OnNMClickListHotkeys(NMHDR * pNMHDR, LRESULT *pResult)315 void CHotKeyDlg::OnNMClickListHotkeys(NMHDR * /*pNMHDR*/, LRESULT *pResult) 316 316 { 317 317 // TODO: Add your control notification handler code here -
trunk/HotKeyDlg.h
r29 r32 34 34 35 35 public: 36 CHotKeyDlg(CWnd* pParent = NULL , int iValCnt = iCommandCount); // standard constructor36 CHotKeyDlg(CWnd* pParent = NULL); // standard constructor 37 37 virtual ~CHotKeyDlg(); 38 38 -
trunk/TaskPropertySheet.cpp
r3 r32 85 85 //}}AFX_MSG_MAP 86 86 END_MESSAGE_MAP() 87 LRESULT CTaskPropertySheet::OnKickIdle(WPARAM wp, LPARAM lp)87 LRESULT CTaskPropertySheet::OnKickIdle(WPARAM /*wp*/, LPARAM /*lp*/) 88 88 { 89 89 ASSERT_VALID(this); -
trunk/shared/key.cpp
r27 r32 369 369 } 370 370 371 BOOL CIniKey::Open(HKEY hKey, LPCTSTR lpszKeyName, BOOL bCreate) {371 BOOL CIniKey::Open(HKEY /*hKey*/, LPCTSTR lpszKeyName, BOOL /*bCreate*/) { 372 372 section = lpszKeyName; 373 373 section.Replace('/', '\\'); … … 449 449 } 450 450 451 BOOL CIniKey::DeleteValue(LPCTSTR lpszValueName) {451 BOOL CIniKey::DeleteValue(LPCTSTR /*lpszValueName*/) { 452 452 return false; 453 453 } … … 469 469 } 470 470 471 BOOL CIniKey::GetNextValueName(CString& strValName, DWORD index, LPDWORD valType) {471 BOOL CIniKey::GetNextValueName(CString& strValName, DWORD /*index*/, LPDWORD /*valType*/) { 472 472 assert(("CIniKey::GetNextValueName() not implemented!", false)); 473 473 strValName = "";
Note: See TracChangeset
for help on using the changeset viewer.
