From fa225d36c90f0850543b5a557d97e352dddfd2a3 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 18 Dec 2016 15:09:00 -0500 Subject: [PATCH] win32 error. --- dot_clean.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_clean.cpp b/dot_clean.cpp index d96c736..4aff911 100644 --- a/dot_clean.cpp +++ b/dot_clean.cpp @@ -196,7 +196,7 @@ void one_file(const std::string &data, const std::string &rsrc) noexcept try { #ifdef _WIN32 std::string tmp = data + ":AFP_Resource"; int rfd = open(tmp.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666); - if (rfd < 0) throw_errno("com.apple.ResourceFork"); + if (rfd < 0) throw_errno("AFP_Resource"); defer close_fd([rfd](){ close(rfd); }); int ok = write(rfd, mf.data() + e.entryOffset, e.entryLength); if (ok < 0) throw_errno("AFP_Resource");