Avoid gcc warning "dereferencing type-punned pointer

will break strict-aliasing rules".
This commit is contained in:
Gisle Vanem 2005-10-02 18:22:45 +00:00
parent e8c3bb45ba
commit 06c3bec65d
1 changed files with 3 additions and 2 deletions

View File

@ -458,8 +458,9 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
(PCtxtHandle,PSecBufferDesc);
HMODULE hSecur32 = GetModuleHandle("secur32.dll");
if (hSecur32 != NULL) {
*((void**)&pCompleteAuthToken) =
(void*)GetProcAddress(hSecur32, "CompleteAuthToken");
pCompleteAuthToken =
(SECURITY_STATUS (__stdcall *)(PCtxtHandle,PSecBufferDesc))
GetProcAddress(hSecur32, "CompleteAuthToken");
if( pCompleteAuthToken != NULL ) {
pCompleteAuthToken(&ntlm->c_handle, &desc);
}