fix of a fix (CreateFileW => CreateFileA)

This commit is contained in:
Aleksandar Fabijanic 2008-09-23 18:42:22 +00:00
parent 25c8f843a0
commit ed536d12a8

View File

@ -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