From 15faa46e37f220a1e22d1f83106c95d7c610259e Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Tue, 1 Mar 2016 21:33:58 +0100 Subject: fix a typo in os_utils that prevents retrieval of the current process id on windows --- src/lib/utils/os_utils.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3