diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-12 10:08:35 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-12 10:08:35 -0400 |
commit | 12d21666e8352eb71ac355bdfbf2b401ba852e13 (patch) | |
tree | 8400de69b252a5c6ecf2d486872858dcd40b80f3 /tests | |
parent | c4cc837a2ba87d6c316a74bd3f648328273df4ac (diff) | |
download | deduper-12d21666e8352eb71ac355bdfbf2b401ba852e13.tar.xz |
Fix old crap that prevented windows compat efforts from working.
Thanks BLumia for debugging.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdrive.cpp | 4 | ||||
-rw-r--r-- | tests/testdrive_sqlite.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/testdrive.cpp b/tests/testdrive.cpp index 4d449de..0ae323b 100644 --- a/tests/testdrive.cpp +++ b/tests/testdrive.cpp @@ -180,7 +180,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 @@ -199,7 +199,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 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 |