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/Msg_Export/src/utils.cpp | |
parent | b244d1adc6c9a1b6991262b0ee2ee387e75a695b (diff) |
fix for CreatePathToFileW prototype (missing const specifier)
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-x | plugins/Msg_Export/src/utils.cpp | 2 |
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);
}
|