Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Common/C_FileIO.cpp')
-rwxr-xr-xCPP/Common/C_FileIO.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/CPP/Common/C_FileIO.cpp b/CPP/Common/C_FileIO.cpp
index 28a1378c..3c7f82d9 100755
--- a/CPP/Common/C_FileIO.cpp
+++ b/CPP/Common/C_FileIO.cpp
@@ -75,6 +75,11 @@ bool COutFile::Create(const char *name, bool createAlways)
return OpenBinary(name, O_CREAT | O_EXCL | O_WRONLY);
}
+bool COutFile::Open(const char *name, DWORD creationDisposition)
+{
+ return Create(name, false);
+}
+
ssize_t COutFile::Write(const void *data, size_t size)
{
return write(_handle, data, size);