Implement GET_MODULE_HANDLE_EX_FLAG_PIN for windows
authorMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 10:03:22 +0000 (11:03 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 2 Nov 2016 23:38:20 +0000 (23:38 +0000)
commit2e6b83f608b7a4b315146895ac911e8c06d40db1
tree231e52f6eec5adf271809ada136d0e8d2895cc30
parent848dc9619049f6aaad91b367eed309d987009e5e
Implement GET_MODULE_HANDLE_EX_FLAG_PIN for windows

Rather than leaking a reference, just call GetModuleHandleEx and pin the
module on Windows.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 2b59d1beaad43d9cf8eb916a437db63bc8ce1d3a)
crypto/init.c