Commit 9cd2f286 authored by Kai Blin's avatar Kai Blin Committed by Alexandre Julliard

secur32: Cast helper to ULONG_PTR instead of DWORD.

parent 8289ddb0
...@@ -117,7 +117,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW( ...@@ -117,7 +117,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
{ {
helper->mode = NTLM_SERVER; helper->mode = NTLM_SERVER;
phCredential->dwUpper = fCredentialUse; phCredential->dwUpper = fCredentialUse;
phCredential->dwLower = (DWORD)helper; phCredential->dwLower = (ULONG_PTR)helper;
} }
ret = SEC_E_OK; ret = SEC_E_OK;
break; break;
...@@ -229,7 +229,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW( ...@@ -229,7 +229,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
} }
phCredential->dwUpper = fCredentialUse; phCredential->dwUpper = fCredentialUse;
phCredential->dwLower = (DWORD)helper; phCredential->dwLower = (ULONG_PTR)helper;
TRACE("ACH phCredential->dwUpper: 0x%08lx, dwLower: 0x%08lx\n", TRACE("ACH phCredential->dwUpper: 0x%08lx, dwLower: 0x%08lx\n",
phCredential->dwUpper, phCredential->dwLower); phCredential->dwUpper, phCredential->dwLower);
} }
...@@ -632,7 +632,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW( ...@@ -632,7 +632,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
} }
phNewContext->dwUpper = ctxt_attr; phNewContext->dwUpper = ctxt_attr;
phNewContext->dwLower = (DWORD)helper; phNewContext->dwLower = (ULONG_PTR)helper;
ret = SEC_E_OK; ret = SEC_E_OK;
} }
...@@ -956,7 +956,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext( ...@@ -956,7 +956,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
} }
phNewContext->dwUpper = ctxt_attr; phNewContext->dwUpper = ctxt_attr;
phNewContext->dwLower = ret; phNewContext->dwLower = (ULONG_PTR)helper;
HeapFree(GetProcessHeap(), 0, buffer); HeapFree(GetProcessHeap(), 0, buffer);
HeapFree(GetProcessHeap(), 0, bin); HeapFree(GetProcessHeap(), 0, bin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment