secur32: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-09-27 20:03:31 +01:00 committed by Alexandre Julliard
parent fead72e8a7
commit 9c78a93e96
1 changed files with 5 additions and 5 deletions

View File

@ -238,8 +238,8 @@ static void _makeFnTableA(PSecurityFunctionTableA fnTableA,
* implemented (yikes) * implemented (yikes)
*/ */
size_t tableSize = inFnTableA->dwVersion == 1 ? size_t tableSize = inFnTableA->dwVersion == 1 ?
(LPBYTE)&inFnTableA->SetContextAttributesA - (const BYTE *)&inFnTableA->SetContextAttributesA -
(LPBYTE)inFnTableA : sizeof(SecurityFunctionTableA); (const BYTE *)inFnTableA : sizeof(SecurityFunctionTableA);
memcpy(fnTableA, inFnTableA, tableSize); memcpy(fnTableA, inFnTableA, tableSize);
/* override this, since we can do it internally anyway */ /* override this, since we can do it internally anyway */
@ -309,8 +309,8 @@ static void _makeFnTableW(PSecurityFunctionTableW fnTableW,
* implemented (yikes) * implemented (yikes)
*/ */
size_t tableSize = inFnTableW->dwVersion == 1 ? size_t tableSize = inFnTableW->dwVersion == 1 ?
(LPBYTE)&inFnTableW->SetContextAttributesW - (const BYTE *)&inFnTableW->SetContextAttributesW -
(LPBYTE)inFnTableW : sizeof(SecurityFunctionTableW); (const BYTE *)inFnTableW : sizeof(SecurityFunctionTableW);
memcpy(fnTableW, inFnTableW, tableSize); memcpy(fnTableW, inFnTableW, tableSize);
/* override this, since we can do it internally anyway */ /* override this, since we can do it internally anyway */
@ -374,7 +374,7 @@ static void _copyPackageInfo(PSecPkgInfoW info, const SecPkgInfoA *inInfoA,
/* odd, I know, but up until Name and Comment the structures are /* odd, I know, but up until Name and Comment the structures are
* identical * identical
*/ */
memcpy(info, inInfoW ? inInfoW : (PSecPkgInfoW)inInfoA, sizeof(*info)); memcpy(info, inInfoW ? inInfoW : (const SecPkgInfoW *)inInfoA, sizeof(*info));
if (inInfoW) if (inInfoW)
{ {
info->Name = SECUR32_strdupW(inInfoW->Name); info->Name = SECUR32_strdupW(inInfoW->Name);