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:32:50 +0000 (23:32 +0000)
commit2b59d1beaad43d9cf8eb916a437db63bc8ce1d3a
tree190c0f1358688b7ee7fc9e1c3d3c6e71b7c65fa2
parentb6d5ba1a9f004d637acac18ae3519fe063b6b5e1
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>
crypto/init.c