diff options
author | Jack Lloyd <[email protected]> | 2016-03-02 18:40:16 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-03-02 18:40:16 -0500 |
commit | 4424af469bd2bfe05b9ac1cd4e156383f23ae9e4 (patch) | |
tree | 5d2f1e92fe070f5ba16a83d763af8ff6b7306501 | |
parent | 67ebd0a247b1ed1b5b8c350b627ce7f309d17deb (diff) | |
parent | 15faa46e37f220a1e22d1f83106c95d7c610259e (diff) |
Merge pull request #440 from neusdan/os_utils_process_id_fix
Fix a typo in os_utils that prevents retrieval of the current process id on Windows
-rw-r--r-- | src/lib/utils/os_utils.cpp | 4 |
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 |