Andrew Talbot : oleaut32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 25 14:45:29 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Sep 21 21:25:39 2006 +0100

oleaut32: Cast-qual warnings fix.

---

 dlls/oleaut32/olefont.c |    4 ++--
 dlls/oleaut32/typelib.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c
index ac0bc8f..6f27d21 100644
--- a/dlls/oleaut32/olefont.c
+++ b/dlls/oleaut32/olefont.c
@@ -332,10 +332,10 @@ HRESULT WINAPI OleCreateFontIndirect(
   if (!lpFontDesc) {
     FONTDESC fd;
 
-    static const WCHAR fname[] = { 'S','y','s','t','e','m',0 };
+    static WCHAR fname[] = { 'S','y','s','t','e','m',0 };
 
     fd.cbSizeofstruct = sizeof(fd);
-    fd.lpstrName      = (WCHAR*)fname;
+    fd.lpstrName      = fname;
     fd.cySize.s.Lo    = 80000;
     fd.cySize.s.Hi    = 0;
     fd.sWeight 	      = 0;
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 07da88f..ccca8c3 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -611,14 +611,14 @@ #undef XX
 			    if (RegCreateKeyExW(key, ProxyStubClsidW, 0, NULL, 0,
 				KEY_WRITE, NULL, &subKey, NULL) == ERROR_SUCCESS) {
 				RegSetValueExW(subKey, NULL, 0, REG_SZ,
-					       (BYTE*)PSOA, sizeof PSOA);
+					       (const BYTE *)PSOA, sizeof PSOA);
 				RegCloseKey(subKey);
 			    }
 
 			    if (RegCreateKeyExW(key, ProxyStubClsid32W, 0, NULL, 0,
 				KEY_WRITE, NULL, &subKey, NULL) == ERROR_SUCCESS) {
 				RegSetValueExW(subKey, NULL, 0, REG_SZ,
-					       (BYTE*)PSOA, sizeof PSOA);
+					       (const BYTE *)PSOA, sizeof PSOA);
 				RegCloseKey(subKey);
 			    }
 




More information about the wine-cvs mailing list