mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 07:54:50 +02:00
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:
parent
27739d90ed
commit
319d1bb581
@ -601,7 +601,7 @@ pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
getfunctionlist = GetProcAddress(handle, "C_GetFunctionList");
|
||||
getfunctionlist = (CK_RV(*)(CK_FUNCTION_LIST **))GetProcAddress(handle, "C_GetFunctionList");
|
||||
|
||||
if (getfunctionlist == NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user