summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-14 20:24:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-14 20:24:31 +0300
commit5004a5850ffc5157661b331abb4649237c31efdb (patch)
treebb8a2547f83d56eaf3d2cae612844558f8db1950 /plugins/Msg_Export/src/utils.cpp
parentb244d1adc6c9a1b6991262b0ee2ee387e75a695b (diff)
fix for CreatePathToFileW prototype (missing const specifier)
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 87e4f7b980..27b12dd673 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -1053,7 +1053,7 @@ HANDLE openCreateFile(wstring sFilePath)
if (hFile == INVALID_HANDLE_VALUE) {
// this might be because the path isent created
// so we will try to create it
- if (!CreateDirectoryTreeW(sFilePath.c_str()))
+ if (!CreatePathToFileW(sFilePath.c_str()))
hFile = CreateFile(sFilePath.c_str(), GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);
}