aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/algo_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/base/algo_registry.h')
-rw-r--r--src/lib/base/algo_registry.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/lib/base/algo_registry.h b/src/lib/base/algo_registry.h
index 3b1a72d88..a431e9178 100644
--- a/src/lib/base/algo_registry.h
+++ b/src/lib/base/algo_registry.h
@@ -22,7 +22,7 @@
#define BOTAN_WORKAROUND_GH_321
#define NOMINMAX 1
#define WIN32_LEAN_AND_MEAN 1
- #include <Windows.h>
+ #include <windows.h>
#endif
@@ -33,28 +33,28 @@ namespace Botan {
class WinCS_Mutex
{
public:
- WinCS_Mutex()
- {
- InitializeCriticalSection(&m_cs);
- }
-
- ~WinCS_Mutex()
- {
- DeleteCriticalSection(&m_cs);
- }
-
- void lock()
- {
- EnterCriticalSection(&m_cs);
- }
-
- void unlock()
- {
- LeaveCriticalSection(&m_cs);
- }
-
- private:
- CRITICAL_SECTION m_cs;
+ WinCS_Mutex()
+ {
+ ::InitializeCriticalSection(&m_cs);
+ }
+
+ ~WinCS_Mutex()
+ {
+ ::DeleteCriticalSection(&m_cs);
+ }
+
+ void lock()
+ {
+ ::EnterCriticalSection(&m_cs);
+ }
+
+ void unlock()
+ {
+ ::LeaveCriticalSection(&m_cs);
+ }
+
+ private:
+ CRITICAL_SECTION m_cs;
};
#endif
@@ -111,7 +111,7 @@ class Algo_Registry
}
catch(std::exception& e)
{
- throw Exception("Creating '" + spec.as_string() + "' failed: " + e.what());
+ throw Lookup_Error("Creating '" + spec.as_string() + "' failed: " + e.what());
}
return nullptr;