secur32: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Sep 27 14:03:31 CDT 2006
Changelog:
secur32: Cast-qual warnings fix.
diff -urN a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c
--- a/dlls/secur32/secur32.c 2006-09-25 22:50:56.000000000 +0100
+++ b/dlls/secur32/secur32.c 2006-09-27 19:47:27.000000000 +0100
@@ -238,8 +238,8 @@
* 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 @@
* 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 @@
/* 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);
More information about the wine-patches
mailing list