mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 10:59:45 +00:00
msxml3: Do not cast void pointers to other pointer types.
This commit is contained in:
parent
276b938e1d
commit
328f60a686
@ -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)
|
||||
|
@ -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 );
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user