msxml3: Do not cast void pointers to other pointer types.
authorMichael Stefaniuc <mstefani@redhat.de>
Fri, 5 Dec 2008 06:47:27 +0000 (07:47 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 5 Dec 2008 11:36:21 +0000 (12:36 +0100)
dlls/msxml3/element.c
dlls/msxml3/node.c
dlls/msxml3/saxreader.c

index 4b9bf6cae0420427e69aae5a69e51ec087ffba31..a31f80ef799bb55602b7301a7fff55b7e6d46e7e 100644 (file)
@@ -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)
index aa3b7480aaa78372df1523e232b80024311d211f..3169f351fe2342b94caecb32a1cf3c642928e67c 100644 (file)
@@ -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 );
index 8370af0c19e000d51edce65cb2951084df14567d..17a333419f317269bb5864bd282953c2649179d2 100644 (file)
@@ -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);