mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-24 06:04:15 +01:00
trunk/branch integration: fix warning
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// WindowsConsoleChannel.cpp
|
// WindowsConsoleChannel.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/src/WindowsConsoleChannel.cpp#2 $
|
// $Id: //poco/1.4/Foundation/src/WindowsConsoleChannel.cpp#1 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Logging
|
// Package: Logging
|
||||||
@@ -69,14 +69,14 @@ void WindowsConsoleChannel::log(const Message& msg)
|
|||||||
if (_isFile)
|
if (_isFile)
|
||||||
{
|
{
|
||||||
DWORD written;
|
DWORD written;
|
||||||
WriteFile(_hConsole, text.data(), text.size(), &written, NULL);
|
WriteFile(_hConsole, text.data(), static_cast<DWORD>(text.size()), &written, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::wstring utext;
|
std::wstring utext;
|
||||||
UnicodeConverter::toUTF16(text, utext);
|
UnicodeConverter::toUTF16(text, utext);
|
||||||
DWORD written;
|
DWORD written;
|
||||||
WriteConsoleW(_hConsole, utext.data(), utext.size(), &written, NULL);
|
WriteConsoleW(_hConsole, utext.data(), static_cast<DWORD>(utext.size()), &written, NULL);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
DWORD written;
|
DWORD written;
|
||||||
|
|||||||
Reference in New Issue
Block a user