From 87cf54594168e5579bbb852bcb4aaae3fefa3b89 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jun 2015 10:35:19 +0000 Subject: let the massacre be silent git-svn-id: http://svn.miranda-ng.org/main/trunk@14294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/miranda32/src/checker.cpp | 6 ++---- src/miranda32/src/miranda.cpp | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src/miranda32') diff --git a/src/miranda32/src/checker.cpp b/src/miranda32/src/checker.cpp index 511e228109..eb8206c95a 100644 --- a/src/miranda32/src/checker.cpp +++ b/src/miranda32/src/checker.cpp @@ -214,16 +214,14 @@ bool CheckDlls() // there's smth to delete. init UAC if (!bInit) { // failed? then we need UAC - if (!PrepareEscalation()) { -LBL_Error: MessageBox(NULL, _T("Miranda failed to delete the obsolete file. Do it manually"), arDlls[i], MB_ICONEXCLAMATION | MB_OK); + if (!PrepareEscalation()) return false; - } bInit = true; } if (!TryDeleteFile(arDlls[i])) - goto LBL_Error; + return false; } return true; diff --git a/src/miranda32/src/miranda.cpp b/src/miranda32/src/miranda.cpp index d05dc557c4..e406740196 100644 --- a/src/miranda32/src/miranda.cpp +++ b/src/miranda32/src/miranda.cpp @@ -37,9 +37,8 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int) p[1] = 0; SetCurrentDirectory(tszPath); - // all dlls must be moved to libs - if (!CheckDlls()) - return 3; + // all old dlls must be removed + CheckDlls(); _tcsncat(tszPath, _T("libs"), _TRUNCATE); DWORD cbPath = (DWORD)_tcslen(tszPath); -- cgit v1.2.3