diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 15:32:06 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 18:20:46 +0100 |
commit | 1c0172cca4f1e90679321912e20436a7f42f122d (patch) | |
tree | 77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /plugins/ExternalAPI/m_folders.h | |
parent | dff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff) |
more nullptr
Diffstat (limited to 'plugins/ExternalAPI/m_folders.h')
-rw-r--r-- | plugins/ExternalAPI/m_folders.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/ExternalAPI/m_folders.h b/plugins/ExternalAPI/m_folders.h index 85173bf7dd..c6b26f0d26 100644 --- a/plugins/ExternalAPI/m_folders.h +++ b/plugins/ExternalAPI/m_folders.h @@ -141,7 +141,9 @@ typedef struct{ __inline static HANDLE FoldersRegisterCustomPath(const char *section, const char *name, const char *defaultPath)
{
- if (!ServiceExists(MS_FOLDERS_REGISTER_PATH)) return 0;
+ if (!ServiceExists(MS_FOLDERS_REGISTER_PATH))
+ return nullptr;
+
FOLDERSDATA fd = { sizeof(fd) };
fd.szSection = section;
fd.szName = name;
@@ -150,9 +152,11 @@ __inline static HANDLE FoldersRegisterCustomPath(const char *section, const char }
#ifdef _UNICODE
-__inline static HANDLE FoldersRegisterCustomPathW(const char *section, const char *name, const wchar_t *defaultPathW, const wchar_t *userNameW = NULL)
+__inline static HANDLE FoldersRegisterCustomPathW(const char *section, const char *name, const wchar_t *defaultPathW, const wchar_t *userNameW = nullptr)
{
- if (!ServiceExists(MS_FOLDERS_REGISTER_PATH)) return 0;
+ if (!ServiceExists(MS_FOLDERS_REGISTER_PATH))
+ return nullptr;
+
FOLDERSDATA fd = { sizeof(fd) };
fd.szSection = section;
fd.szName = name;
|