Fix simpledynamic.c - a typo and missed a header

CLA: trivial

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13584)
This commit is contained in:
Kelvin Lee 2020-12-02 00:25:01 +11:00
parent 527eb8d294
commit 9feb2fce65

View File

@ -9,6 +9,7 @@
#include <stdlib.h> /* For NULL */
#include <openssl/macros.h> /* For NON_EMPTY_TRANSLATION_UNIT */
#include <openssl/e_os2.h>
#include "simpledynamic.h"
#if defined(DSO_DLFCN)
@ -42,7 +43,7 @@ const char *sd_error(void)
#elif defined(DSO_WIN32)
nt sd_load(const char *filename, SD *lib, ossl_unused int type)
int sd_load(const char *filename, SD *lib, ossl_unused int type)
{
*lib = LoadLibraryA(filename);
return *lib == NULL ? 0 : 1;