diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-21 17:53:02 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-04-21 17:53:07 +1000 |
commit | 52fab8ba7e2a728e884a06fa80f9e0a0d4938e05 (patch) | |
tree | 301ed3e671a9130efad6bbade43f13adb47f3081 /src/share/grabbag | |
parent | 92db3c951eb9ccd7b327ce7af40e541e72b946ed (diff) | |
download | flac-52fab8ba7e2a728e884a06fa80f9e0a0d4938e05.tar.gz |
Win utf8 treatment for CreateFile.
Patch from Janne Hyvärinen <cse@sci.fi>.
Diffstat (limited to 'src/share/grabbag')
-rw-r--r-- | src/share/grabbag/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c index dd2880cb..a3706f1d 100644 --- a/src/share/grabbag/file.c +++ b/src/share/grabbag/file.c @@ -127,8 +127,8 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2) BY_HANDLE_FILE_INFORMATION info1, info2; HANDLE h1, h2; BOOL ok = 1; - h1 = CreateFile(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - h2 = CreateFile(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + h1 = CreateFile_utf8(f1, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + h2 = CreateFile_utf8(f2, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(h1 == INVALID_HANDLE_VALUE || h2 == INVALID_HANDLE_VALUE) ok = 0; ok &= GetFileInformationByHandle(h1, &info1); |