Skip to content
Snippets Groups Projects
Commit 84269112 authored by rswindell's avatar rswindell
Browse files

Fixed msvc GetProcAddress() return value assignment errors with void* casts.

parent 6c34c9c0
No related branches found
No related tags found
No related merge requests found
......@@ -34,51 +34,51 @@ int init_crypt(void)
if(cryptlib==NULL)
return(-1);
if((cl.PopData=GetProcAddress(cryptlib,"cryptPopData"))==NULL) {
if((cl.PopData=(void*)GetProcAddress(cryptlib,"cryptPopData"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.PushData=GetProcAddress(cryptlib,"cryptPushData"))==NULL) {
if((cl.PushData=(void*)GetProcAddress(cryptlib,"cryptPushData"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.FlushData=GetProcAddress(cryptlib,"cryptFlushData"))==NULL) {
if((cl.FlushData=(void*)GetProcAddress(cryptlib,"cryptFlushData"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.Init=GetProcAddress(cryptlib,"cryptInit"))==NULL) {
if((cl.Init=(void*)GetProcAddress(cryptlib,"cryptInit"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.End=GetProcAddress(cryptlib,"cryptEnd"))==NULL) {
if((cl.End=(void*)GetProcAddress(cryptlib,"cryptEnd"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.CreateSession=GetProcAddress(cryptlib,"cryptCreateSession"))==NULL) {
if((cl.CreateSession=(void*)GetProcAddress(cryptlib,"cryptCreateSession"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.GetAttribute=GetProcAddress(cryptlib,"cryptGetAttribute"))==NULL) {
if((cl.GetAttribute=(void*)GetProcAddress(cryptlib,"cryptGetAttribute"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.GetAttributeString=GetProcAddress(cryptlib,"cryptGetAttributeString"))==NULL) {
if((cl.GetAttributeString=(void*)GetProcAddress(cryptlib,"cryptGetAttributeString"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.SetAttribute=GetProcAddress(cryptlib,"cryptSetAttribute"))==NULL) {
if((cl.SetAttribute=(void*)GetProcAddress(cryptlib,"cryptSetAttribute"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.SetAttributeString=GetProcAddress(cryptlib,"cryptSetAttributeString"))==NULL) {
if((cl.SetAttributeString=(void*)GetProcAddress(cryptlib,"cryptSetAttributeString"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.DestroySession=GetProcAddress(cryptlib,"cryptDestroySession"))==NULL) {
if((cl.DestroySession=(void*)GetProcAddress(cryptlib,"cryptDestroySession"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
if((cl.AddRandom=GetProcAddress(cryptlib,"cryptAddRandom"))==NULL) {
if((cl.AddRandom=(void*)GetProcAddress(cryptlib,"cryptAddRandom"))==NULL) {
FreeLibrary(cryptlib);
return(-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment