From b6c325bfc073aa6a3e9266196079a5179b3df637 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 25 Oct 2006 20:38:54 +0100 Subject: [PATCH] crypt32: Cast-qual warnings fix. --- dlls/crypt32/oid.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c index 5a1155cdd6e..4ab8a90b465 100644 --- a/dlls/crypt32/oid.c +++ b/dlls/crypt32/oid.c @@ -253,8 +253,11 @@ BOOL WINAPI CryptInstallOIDFunctionAddress(HMODULE hModule, func->encoding = dwEncodingType; if (HIWORD(rgFuncEntry[i].pszOID)) { - func->entry.pszOID = (LPSTR)((LPBYTE)func + sizeof(*func)); - strcpy((LPSTR)func->entry.pszOID, rgFuncEntry[i].pszOID); + LPSTR oid; + + oid = (LPSTR)((LPBYTE)func + sizeof(*func)); + strcpy(oid, rgFuncEntry[i].pszOID); + func->entry.pszOID = oid; } else func->entry.pszOID = rgFuncEntry[i].pszOID;