Add cast for GetProcAddress return

GetProcAddress returns a FARPROC, *, but compiler likes it better if you
give a proper cast to the function value.
This commit is contained in:
dkulwin 2015-11-04 17:57:53 -06:00
parent 27739d90ed
commit 319d1bb581

View File

@ -601,7 +601,7 @@ pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp)
goto fail; goto fail;
} }
getfunctionlist = GetProcAddress(handle, "C_GetFunctionList"); getfunctionlist = (CK_RV(*)(CK_FUNCTION_LIST **))GetProcAddress(handle, "C_GetFunctionList");
if (getfunctionlist == NULL) if (getfunctionlist == NULL)
{ {