diff --git a/src/platforms/windows/windowsCriticalSection.cpp b/src/platforms/windows/windowsCriticalSection.cpp index d3aebd09..ac5fe82f 100755 --- a/src/platforms/windows/windowsCriticalSection.cpp +++ b/src/platforms/windows/windowsCriticalSection.cpp @@ -43,7 +43,7 @@ windowsCriticalSection::windowsCriticalSection() windowsCriticalSection::~windowsCriticalSection() { - DeleteCriticalSection(&m_cs) + DeleteCriticalSection(&m_cs); } diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index 824589b7..9a3a85e3 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -241,7 +241,7 @@ unsigned int windowsHandler::getProcessId() const } -unsigned int windowsHandler::getThreadId() cont +unsigned int windowsHandler::getThreadId() const { return static_cast (::GetCurrentThreadId()); } @@ -289,7 +289,7 @@ void windowsHandler::generateRandomBytes(unsigned char* buffer, const unsigned i } -ref posixHandler::createCriticalSection() +ref windowsHandler::createCriticalSection() { return vmime::create (); }