crypt32: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-10-25 20:38:54 +01:00 committed by Alexandre Julliard
parent 8e0bc11f72
commit b6c325bfc0
1 changed files with 5 additions and 2 deletions

View File

@ -253,8 +253,11 @@ BOOL WINAPI CryptInstallOIDFunctionAddress(HMODULE hModule,
func->encoding = dwEncodingType; func->encoding = dwEncodingType;
if (HIWORD(rgFuncEntry[i].pszOID)) if (HIWORD(rgFuncEntry[i].pszOID))
{ {
func->entry.pszOID = (LPSTR)((LPBYTE)func + sizeof(*func)); LPSTR oid;
strcpy((LPSTR)func->entry.pszOID, rgFuncEntry[i].pszOID);
oid = (LPSTR)((LPBYTE)func + sizeof(*func));
strcpy(oid, rgFuncEntry[i].pszOID);
func->entry.pszOID = oid;
} }
else else
func->entry.pszOID = rgFuncEntry[i].pszOID; func->entry.pszOID = rgFuncEntry[i].pszOID;