From defc1bba1dbc3c5720c31d0fe483de90e04935f9 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 6 Nov 2012 16:05:24 +0100 Subject: [PATCH] Fixed compilation issues on Windows. --- src/platforms/windows/windowsCriticalSection.cpp | 2 +- src/platforms/windows/windowsHandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 (); }