diff options
Diffstat (limited to 'plugins/UserGuide/src/main.cpp')
-rw-r--r-- | plugins/UserGuide/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 97641a2370..de77c75a9d 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -25,7 +25,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) wchar_t *ptszHelpFile = db_get_wsa(NULL, "UserGuide", "PathToHelpFile");
- if (ptszHelpFile==0)
+ if (ptszHelpFile==nullptr)
{
mir_wstrcpy(pszDirName, L"%miranda_path%\\Plugins");
mir_wstrcpy(pszFileName, L"UserGuide.chm");
@@ -40,7 +40,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) else
{
LPTSTR pszDivider = wcsrchr(ptszHelpFile, '\\');
- if (pszDivider == NULL)
+ if (pszDivider == nullptr)
{
mir_wstrcpy(pszDirName, L"");
wcsncpy(pszFileName, ptszHelpFile, mir_wstrlen(ptszHelpFile));
@@ -59,7 +59,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) pszDirNameEx = Utils_ReplaceVarsW(pszDirName);
mir_free(pszDirName);
- ShellExecute(NULL, L"open", pszFileName, NULL, pszDirNameEx, SW_SHOW);
+ ShellExecute(nullptr, L"open", pszFileName, nullptr, pszDirNameEx, SW_SHOW);
mir_free(pszFileName);
mir_free(pszDirNameEx);
return 0;
|