aboutsummaryrefslogtreecommitdiff
path: root/tests/testdrive_sqlite.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 10:08:35 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 10:08:35 -0400
commit12d21666e8352eb71ac355bdfbf2b401ba852e13 (patch)
tree8400de69b252a5c6ecf2d486872858dcd40b80f3 /tests/testdrive_sqlite.cpp
parentc4cc837a2ba87d6c316a74bd3f648328273df4ac (diff)
downloaddeduper-12d21666e8352eb71ac355bdfbf2b401ba852e13.tar.xz
Fix old crap that prevented windows compat efforts from working.
Thanks BLumia for debugging.
Diffstat (limited to 'tests/testdrive_sqlite.cpp')
-rw-r--r--tests/testdrive_sqlite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testdrive_sqlite.cpp b/tests/testdrive_sqlite.cpp
index 42f176e..168d974 100644
--- a/tests/testdrive_sqlite.cpp
+++ b/tests/testdrive_sqlite.cpp
@@ -175,7 +175,7 @@ void build_file_list(fs::path path, bool recursive, std::vector<fs::path> &out)
if (st.gcount() < 6) continue;
if(!memcmp(c,"\x89PNG\r\n", 6) || !memcmp(c,"\xff\xd8\xff", 3))
{
- out.push_back(p.path().string());
+ out.push_back(p.path());
#if DEBUG > 0
printf("%ld, %s\n", out.size() - 1, out.back().c_str());
#endif
@@ -194,7 +194,7 @@ void build_file_list(fs::path path, bool recursive, std::vector<fs::path> &out)
if (st.gcount() < 6) continue;
if(!memcmp(c,"\x89PNG\r\n", 6) || !memcmp(c,"\xff\xd8\xff", 3))
{
- out.push_back(p.path().string());
+ out.push_back(p.path());
#if DEBUG > 0
printf("%ld, %s\n", out.size() - 1, out.back().c_str());
#endif