mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
fix of a fix (CreateFileW => CreateFileA)
This commit is contained in:
parent
25c8f843a0
commit
ed536d12a8
@ -105,7 +105,7 @@ const std::string& LogFileImpl::pathImpl() const
|
||||
|
||||
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);
|
||||
SetFilePointer(_hFile, 0, 0, FILE_END);
|
||||
// There seems to be a strange "optimization" in the Windows NTFS
|
||||
|
Loading…
Reference in New Issue
Block a user