diff options
author | Goraf <goraf@miranda-ng.org> | 2016-02-09 16:00:09 +0000 |
---|---|---|
committer | Goraf <goraf@miranda-ng.org> | 2016-02-09 16:00:09 +0000 |
commit | d49739f87dd347d6a560dd834788b74cf520b931 (patch) | |
tree | 02d0f5c6f6846f7a48234ed26bc65e421e407d80 /plugins/ContextHelp/src/main.cpp | |
parent | fd8fdaa7ade16132fd3f23db5b0727e3615038ad (diff) |
ContextHelp: revert of accidentally lowercased SIZEOF()
git-svn-id: http://svn.miranda-ng.org/main/trunk@16251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContextHelp/src/main.cpp')
-rw-r--r-- | plugins/ContextHelp/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ContextHelp/src/main.cpp b/plugins/ContextHelp/src/main.cpp index 6ddc2363b5..28887b15e0 100644 --- a/plugins/ContextHelp/src/main.cpp +++ b/plugins/ContextHelp/src/main.cpp @@ -52,7 +52,7 @@ static void InstallFile(const TCHAR *pszFileName, const TCHAR *pszDestSubDir) TCHAR szFileFrom[MAX_PATH + 1], szFileTo[MAX_PATH + 1], *p;
HANDLE hFile;
- if (!GetModuleFileName(hInst, szFileFrom, sizeof(szFileFrom) - lstrlen(pszFileName)))
+ if (!GetModuleFileName(hInst, szFileFrom, _countof(szFileFrom) - lstrlen(pszFileName)))
return;
p = _tcsrchr(szFileFrom, _T('\\'));
if (p != NULL)
@@ -64,7 +64,7 @@ static void InstallFile(const TCHAR *pszFileName, const TCHAR *pszDestSubDir) return;
CloseHandle(hFile);
- if (!GetModuleFileName(NULL, szFileTo, sizeof(szFileTo) - lstrlen(pszDestSubDir) - lstrlen(pszFileName)))
+ if (!GetModuleFileName(NULL, szFileTo, _countof(szFileTo) - lstrlen(pszDestSubDir) - lstrlen(pszFileName)))
return;
p = _tcsrchr(szFileTo, _T('\\'));
if (p != NULL)
|