summaryrefslogtreecommitdiff
path: root/plugins/ClientChangeNotify/src/Misc.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-16 17:27:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-16 17:27:21 +0000
commit7fb3e4a0ffcc61fc3f457fe35d46a0e32bdc18f1 (patch)
treef2428423e271c54507bf55ffbdc4d42e6b1cfe17 /plugins/ClientChangeNotify/src/Misc.h
parent365183d00b2eaad4d7c1a38bf346c6635e2c8031 (diff)
all warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14968 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ClientChangeNotify/src/Misc.h')
-rw-r--r--plugins/ClientChangeNotify/src/Misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ClientChangeNotify/src/Misc.h b/plugins/ClientChangeNotify/src/Misc.h
index b2ecf87638..29f1b72d0d 100644
--- a/plugins/ClientChangeNotify/src/Misc.h
+++ b/plugins/ClientChangeNotify/src/Misc.h
@@ -40,11 +40,11 @@ __inline void ShowMsg(TCHAR *FirstLine, TCHAR *SecondLine = _T(""), bool IsError
__inline void ShowLog(TCString &LogFilePath)
{
- int Result = (int)ShellExecute(NULL, _T("open"), LogFilePath, NULL, NULL, SW_SHOW);
+ INT_PTR Result = (INT_PTR)ShellExecute(NULL, _T("open"), LogFilePath, NULL, NULL, SW_SHOW);
if (Result <= 32) // Error
{
TCHAR szError[64];
- mir_sntprintf(szError, lengthof(szError), TranslateT("Error #%d"), Result);
+ mir_sntprintf(szError, TranslateT("Error #%d"), Result);
ShowMsg(szError, TranslateT("Can't open log file ") + LogFilePath, true);
}
}