summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src/backup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r--plugins/Db_autobackups/src/backup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index ea18899542..d95b9e59f1 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -186,7 +186,7 @@ int Backup(wchar_t *backup_filename)
HWND progress_dialog = NULL;
SYSTEMTIME st;
- CallService(MS_DB_GETPROFILENAMET, _countof(dbname), (LPARAM)dbname);
+ CallService(MS_DB_GETPROFILENAMEW, _countof(dbname), (LPARAM)dbname);
if (backup_filename == NULL) {
int err;
@@ -196,7 +196,7 @@ int Backup(wchar_t *backup_filename)
bZip = options.use_zip != 0;
backupfolder = Utils_ReplaceVarsT(options.folder);
// ensure the backup folder exists (either create it or return non-zero signifying error)
- err = CreateDirectoryTreeT(backupfolder);
+ err = CreateDirectoryTreeW(backupfolder);
if (err != ERROR_ALREADY_EXISTS && err != 0) {
mir_free(backupfolder);
return 1;