1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

sspi: Fixed incompatible parameter pointer type in Curl_sspi_version

This commit is contained in:
Marc Hoersken 2012-06-10 23:31:59 +02:00 committed by Daniel Stenberg
parent 0c86ccc647
commit 61d152384e

View File

@ -124,6 +124,7 @@ CURLcode Curl_sspi_version(int *major, int *minor, int *build, int *special)
LPTSTR path = NULL; LPTSTR path = NULL;
LPVOID data = NULL; LPVOID data = NULL;
DWORD size, handle; DWORD size, handle;
UINT length;
if(!s_hSecDll) if(!s_hSecDll)
return CURLE_FAILED_INIT; return CURLE_FAILED_INIT;
@ -138,7 +139,7 @@ CURLcode Curl_sspi_version(int *major, int *minor, int *build, int *special)
data = malloc(size); data = malloc(size);
if(data) { if(data) {
if(GetFileVersionInfo(path, handle, size, data)) { if(GetFileVersionInfo(path, handle, size, data)) {
if(!VerQueryValue(data, "\\", &version_info, &handle)) if(!VerQueryValue(data, "\\", (LPVOID*) &version_info, &length))
result = CURLE_OUT_OF_MEMORY; result = CURLE_OUT_OF_MEMORY;
} }
else else