aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-03-01 21:33:58 +0100
committerDaniel Neus <[email protected]>2016-03-01 21:33:58 +0100
commit15faa46e37f220a1e22d1f83106c95d7c610259e (patch)
tree1d8b9c272e1f9d12d7f74e56279d56dda9fe4eba /src
parent0a9505a067313e0e1b9099873642e07ad9fee52f (diff)
fix a typo in os_utils that prevents retrieval of the current process id on windows
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/os_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index bd87ca2ed..8fa099bc6 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -30,8 +30,8 @@ uint32_t get_process_id()
{
#if defined(BOTAN_TARGET_OS_IS_UNIX)
return ::getpid();
-#elif defined(BOTAN_TARGET_OS_IS_WIDOWS)
- return ::GetProcessId();
+#elif defined(BOTAN_TARGET_OS_IS_WINDOWS)
+ return ::GetCurrentProcessId();
#else
return 0;
#endif