mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
fix of a fix (CreateFileW => CreateFileA)
This commit is contained in:
@@ -105,7 +105,7 @@ const std::string& LogFileImpl::pathImpl() const
|
|||||||
|
|
||||||
void LogFileImpl::createFile()
|
void LogFileImpl::createFile()
|
||||||
{
|
{
|
||||||
_hFile = CreateFileW(_path.c_str(), GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
_hFile = CreateFileA(_path.c_str(), GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
if (_hFile == INVALID_HANDLE_VALUE) throw OpenFileException(_path);
|
if (_hFile == INVALID_HANDLE_VALUE) throw OpenFileException(_path);
|
||||||
SetFilePointer(_hFile, 0, 0, FILE_END);
|
SetFilePointer(_hFile, 0, 0, FILE_END);
|
||||||
// There seems to be a strange "optimization" in the Windows NTFS
|
// There seems to be a strange "optimization" in the Windows NTFS
|
||||||
|
|||||||
Reference in New Issue
Block a user