From 5004a5850ffc5157661b331abb4649237c31efdb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 14 Aug 2018 20:24:31 +0300 Subject: fix for CreatePathToFileW prototype (missing const specifier) --- plugins/PluginUpdater/src/Utils.cpp | 2 +- plugins/PluginUpdater/src/stdafx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index bf96b77579..e0c47e2680 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -583,7 +583,7 @@ int SafeCreateDirectory(const wchar_t *pFolder) return TransactPipe(4, pFolder, nullptr); } -int SafeCreateFilePath(wchar_t *pFolder) +int SafeCreateFilePath(const wchar_t *pFolder) { if (hPipe == nullptr) { CreatePathToFileW(pFolder); diff --git a/plugins/PluginUpdater/src/stdafx.h b/plugins/PluginUpdater/src/stdafx.h index 8e59245d55..b05403facf 100644 --- a/plugins/PluginUpdater/src/stdafx.h +++ b/plugins/PluginUpdater/src/stdafx.h @@ -249,6 +249,6 @@ int SafeCreateDirectory(const wchar_t *ptszDirName); int SafeCopyFile(const wchar_t *ptszSrc, const wchar_t *ptszDst); int SafeMoveFile(const wchar_t *ptszSrc, const wchar_t *ptszDst); int SafeDeleteFile(const wchar_t *ptszSrc); -int SafeCreateFilePath(wchar_t *pFolder); +int SafeCreateFilePath(const wchar_t *pFolder); char *StrToLower(char *str); -- cgit v1.2.3