msxml3: Do not cast void pointers to other pointer types.

Michael Stefaniuc mstefani at redhat.de
Fri Dec 5 00:47:27 CST 2008


---
 dlls/msxml3/element.c   |    2 +-
 dlls/msxml3/node.c      |    2 +-
 dlls/msxml3/saxreader.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c
index 4b9bf6c..a31f80e 100644
--- a/dlls/msxml3/element.c
+++ b/dlls/msxml3/element.c
@@ -478,7 +478,7 @@ static HRESULT WINAPI domelem_get_tagName(
     len = MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->name, -1, NULL, 0 );
     if (element->ns)
         len += MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->ns->prefix, -1, NULL, 0 );
-    str = (LPWSTR) HeapAlloc( GetProcessHeap(), 0, len * sizeof (WCHAR) );
+    str = HeapAlloc( GetProcessHeap(), 0, len * sizeof (WCHAR) );
     if ( !str )
         return E_OUTOFMEMORY;
     if (element->ns)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index aa3b748..3169f35 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -257,7 +257,7 @@ BSTR bstr_from_xmlChar( const xmlChar *buf )
         return NULL;
 
     len = MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) buf, -1, NULL, 0 );
-    str = (LPWSTR) HeapAlloc( GetProcessHeap(), 0, len * sizeof (WCHAR) );
+    str = HeapAlloc( GetProcessHeap(), 0, len * sizeof (WCHAR) );
     if ( !str )
         return NULL;
     MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) buf, -1, str, len );
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 8370af0..17a3334 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -161,7 +161,7 @@ static BSTR bstr_from_xmlCharN(const xmlChar *buf, int len)
 
     dLen = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)buf, len, NULL, 0);
     if(len != -1) dLen++;
-    str = (LPWSTR)HeapAlloc(GetProcessHeap(), 0, dLen * sizeof (WCHAR));
+    str = HeapAlloc(GetProcessHeap(), 0, dLen * sizeof (WCHAR));
     if (!str)
         return NULL;
     MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)buf, len, str, dLen);
-- 
1.6.0.rc1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081205/413e3366/attachment-0001.pgp 


More information about the wine-patches mailing list