summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-25 18:45:18 +0200
committerMax Kellermann <max@musicpd.org>2021-05-25 18:45:45 +0200
commitfd82d67678a835749d12055d32835b92a7e84194 (patch)
treef6694ffc66524e8d98ebb4a322441378af81d03b
parente66c12105b653b7eeeeda4f3fb9e0a17338e3b68 (diff)
sticker/Database: pass NarrowPath to sqlite3_open()
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1171
-rw-r--r--NEWS2
-rw-r--r--src/sticker/Database.cxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a57a408bd..9883f913b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.22.9 (not yet released)
+* Windows
+ - fix build failure with SQLite
ver 0.22.8 (2021/05/22)
* fix crash bug in "albumart" command (0.22.7 regression)
diff --git a/src/sticker/Database.cxx b/src/sticker/Database.cxx
index 860b40dd3..a39cfc93a 100644
--- a/src/sticker/Database.cxx
+++ b/src/sticker/Database.cxx
@@ -21,6 +21,7 @@
#include "Sticker.hxx"
#include "lib/sqlite/Util.hxx"
#include "fs/Path.hxx"
+#include "fs/NarrowPath.hxx"
#include "Idle.hxx"
#include "util/StringCompare.hxx"
#include "util/ScopeExit.hxx"
@@ -82,7 +83,7 @@ static const char sticker_sql_create[] =
"";
StickerDatabase::StickerDatabase(Path path)
- :db(path.c_str())
+ :db(NarrowPath(path))
{
assert(!path.IsNull());