Andrew Talbot : crypt32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 27 08:36:29 CDT 2006


Module: wine
Branch: master
Commit: b6c325bfc073aa6a3e9266196079a5179b3df637
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b6c325bfc073aa6a3e9266196079a5179b3df637

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Oct 25 20:38:54 2006 +0100

crypt32: Cast-qual warnings fix.

---

 dlls/crypt32/oid.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c
index 5a1155c..4ab8a90 100644
--- a/dlls/crypt32/oid.c
+++ b/dlls/crypt32/oid.c
@@ -253,8 +253,11 @@ BOOL WINAPI CryptInstallOIDFunctionAddre
                 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;




More information about the wine-cvs mailing list