Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
328f60a6
Commit
328f60a6
authored
Dec 05, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Do not cast void pointers to other pointer types.
parent
276b938e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
element.c
dlls/msxml3/element.c
+1
-1
node.c
dlls/msxml3/node.c
+1
-1
saxreader.c
dlls/msxml3/saxreader.c
+1
-1
No files found.
dlls/msxml3/element.c
View file @
328f60a6
...
...
@@ -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
)
...
...
dlls/msxml3/node.c
View file @
328f60a6
...
...
@@ -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
);
...
...
dlls/msxml3/saxreader.c
View file @
328f60a6
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment