diff --git a/trantor/net/inner/TcpConnectionImpl.cc b/trantor/net/inner/TcpConnectionImpl.cc index b786c762..04cfbd27 100644 --- a/trantor/net/inner/TcpConnectionImpl.cc +++ b/trantor/net/inner/TcpConnectionImpl.cc @@ -554,7 +554,7 @@ void TcpConnectionImpl::sendFile(const char *fileName, { assert(fileName); #ifdef _WIN32 - sendFile(utils::toNativePath(fileName).c_str(), offset, length); + sendFile(utils::toWidePath(fileName).c_str(), offset, length); #else // _WIN32 auto fileNode = BufferNode::newFileBufferNode(fileName, offset, length);