]> granicus.if.org Git - taglib/commitdiff
Fixed the tests to work with MSVC when UNICODE is set.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 23 Jun 2014 16:29:15 +0000 (01:29 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Mon, 23 Jun 2014 16:29:15 +0000 (01:29 +0900)
tests/utils.h

index 00cef628ac61afa349687443bcbfd46598474207..5f2f9814a044234a03484cfac2d2b2af95066d61 100644 (file)
@@ -29,8 +29,8 @@ inline string copyFile(const string &filename, const string &ext)
   string newname = string(tempnam(NULL, NULL)) + ext;
   string oldname = testFilePath(filename) + ext;
 #ifdef _WIN32
-  CopyFile(oldname.c_str(), newname.c_str(), FALSE);
-  SetFileAttributes(newname.c_str(), GetFileAttributes(newname.c_str()) & ~FILE_ATTRIBUTE_READONLY);
+  CopyFileA(oldname.c_str(), newname.c_str(), FALSE);
+  SetFileAttributesA(newname.c_str(), GetFileAttributesA(newname.c_str()) & ~FILE_ATTRIBUTE_READONLY);
 #else
   char buffer[4096];
   int bytes;