diff options
author | George Hazan <ghazan@miranda.im> | 2018-08-14 20:24:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-08-14 20:24:31 +0300 |
commit | 5004a5850ffc5157661b331abb4649237c31efdb (patch) | |
tree | bb8a2547f83d56eaf3d2cae612844558f8db1950 /plugins/PluginUpdater/pu_stub | |
parent | b244d1adc6c9a1b6991262b0ee2ee387e75a695b (diff) |
fix for CreatePathToFileW prototype (missing const specifier)
Diffstat (limited to 'plugins/PluginUpdater/pu_stub')
-rw-r--r-- | plugins/PluginUpdater/pu_stub/pu_stub.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/pu_stub/pu_stub.cpp b/plugins/PluginUpdater/pu_stub/pu_stub.cpp index 2a42d51c4c..fb4cd24462 100644 --- a/plugins/PluginUpdater/pu_stub/pu_stub.cpp +++ b/plugins/PluginUpdater/pu_stub/pu_stub.cpp @@ -28,7 +28,7 @@ void log(const wchar_t *tszFormat, ...) #endif
}
-int CreateDirectoryTreeW(const WCHAR* szDir)
+int CreateDirectoryTreeW(const wchar_t* szDir)
{
wchar_t szTestDir[MAX_PATH];
lstrcpynW(szTestDir, szDir, MAX_PATH);
@@ -37,7 +37,7 @@ int CreateDirectoryTreeW(const WCHAR* szDir) if (dwAttributes != INVALID_FILE_ATTRIBUTES && (dwAttributes & FILE_ATTRIBUTE_DIRECTORY))
return 0;
- WCHAR *pszLastBackslash = wcsrchr(szTestDir, '\\');
+ wchar_t *pszLastBackslash = wcsrchr(szTestDir, '\\');
if (pszLastBackslash == nullptr)
return 0;
@@ -47,9 +47,9 @@ int CreateDirectoryTreeW(const WCHAR* szDir) return (CreateDirectoryW(szTestDir, nullptr) == 0) ? GetLastError() : 0;
}
-void CreatePathToFileW(WCHAR* wszFilePath)
+void CreatePathToFileW(wchar_t *wszFilePath)
{
- WCHAR* pszLastBackslash = wcsrchr(wszFilePath, '\\');
+ wchar_t* pszLastBackslash = wcsrchr(wszFilePath, '\\');
if (pszLastBackslash == nullptr)
return;
|