Module: wine Branch: master Commit: 9c78a93e964fc9b5df4aa05a2f887373d437a08e URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9c78a93e964fc9b5df4aa05a...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Wed Sep 27 20:03:31 2006 +0100
secur32: Cast-qual warnings fix.
---
dlls/secur32/secur32.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c index 1e0b704..dbe3c4c 100644 --- a/dlls/secur32/secur32.c +++ b/dlls/secur32/secur32.c @@ -238,8 +238,8 @@ static void _makeFnTableA(PSecurityFunct * implemented (yikes) */ size_t tableSize = inFnTableA->dwVersion == 1 ? - (LPBYTE)&inFnTableA->SetContextAttributesA - - (LPBYTE)inFnTableA : sizeof(SecurityFunctionTableA); + (const BYTE *)&inFnTableA->SetContextAttributesA - + (const BYTE *)inFnTableA : sizeof(SecurityFunctionTableA);
memcpy(fnTableA, inFnTableA, tableSize); /* override this, since we can do it internally anyway */ @@ -309,8 +309,8 @@ static void _makeFnTableW(PSecurityFunct * implemented (yikes) */ size_t tableSize = inFnTableW->dwVersion == 1 ? - (LPBYTE)&inFnTableW->SetContextAttributesW - - (LPBYTE)inFnTableW : sizeof(SecurityFunctionTableW); + (const BYTE *)&inFnTableW->SetContextAttributesW - + (const BYTE *)inFnTableW : sizeof(SecurityFunctionTableW);
memcpy(fnTableW, inFnTableW, tableSize); /* override this, since we can do it internally anyway */ @@ -374,7 +374,7 @@ static void _copyPackageInfo(PSecPkgInfo /* odd, I know, but up until Name and Comment the structures are * identical */ - memcpy(info, inInfoW ? inInfoW : (PSecPkgInfoW)inInfoA, sizeof(*info)); + memcpy(info, inInfoW ? inInfoW : (const SecPkgInfoW *)inInfoA, sizeof(*info)); if (inInfoW) { info->Name = SECUR32_strdupW(inInfoW->Name);