Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e5e301b7
Commit
e5e301b7
authored
Nov 13, 2008
by
Ricardo Filipe
Committed by
Alexandre Julliard
Nov 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Check some dead store results (llvm/clang).
parent
8772c5f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
saxreader.c
dlls/msxml3/saxreader.c
+16
-3
No files found.
dlls/msxml3/saxreader.c
View file @
e5e301b7
...
@@ -1168,6 +1168,13 @@ static void libxmlEndElementNS(
...
@@ -1168,6 +1168,13 @@ static void libxmlEndElementNS(
Prefix
,
SysStringLen
(
Prefix
));
Prefix
,
SysStringLen
(
Prefix
));
SysFreeString
(
Prefix
);
SysFreeString
(
Prefix
);
if
(
hr
!=
S_OK
)
{
format_error_message_from_id
(
This
,
hr
);
return
;
}
}
}
}
}
...
@@ -1218,6 +1225,12 @@ static void libxmlCharacters(
...
@@ -1218,6 +1225,12 @@ static void libxmlCharacters(
Chars
,
SysStringLen
(
Chars
));
Chars
,
SysStringLen
(
Chars
));
SysFreeString
(
Chars
);
SysFreeString
(
Chars
);
if
(
hr
!=
S_OK
)
{
format_error_message_from_id
(
This
,
hr
);
return
;
}
This
->
column
+=
end
-
cur
+
1
;
This
->
column
+=
end
-
cur
+
1
;
if
(
lastEvent
)
if
(
lastEvent
)
...
@@ -1772,7 +1785,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
...
@@ -1772,7 +1785,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
hr
=
SAXLocator_create
(
This
,
&
locator
,
vbInterface
);
hr
=
SAXLocator_create
(
This
,
&
locator
,
vbInterface
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
E_FAIL
;
return
hr
;
locator
->
pParserCtxt
=
xmlCreateMemoryParserCtxt
(
buffer
,
size
);
locator
->
pParserCtxt
=
xmlCreateMemoryParserCtxt
(
buffer
,
size
);
if
(
!
locator
->
pParserCtxt
)
if
(
!
locator
->
pParserCtxt
)
...
@@ -1797,7 +1810,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
...
@@ -1797,7 +1810,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
}
}
ISAXLocator_Release
((
ISAXLocator
*
)
&
locator
->
lpSAXLocatorVtbl
);
ISAXLocator_Release
((
ISAXLocator
*
)
&
locator
->
lpSAXLocatorVtbl
);
return
S_OK
;
return
hr
;
}
}
static
HRESULT
internal_parseStream
(
saxreader
*
This
,
IStream
*
stream
,
BOOL
vbInterface
)
static
HRESULT
internal_parseStream
(
saxreader
*
This
,
IStream
*
stream
,
BOOL
vbInterface
)
...
@@ -1813,7 +1826,7 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
...
@@ -1813,7 +1826,7 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
hr
=
SAXLocator_create
(
This
,
&
locator
,
vbInterface
);
hr
=
SAXLocator_create
(
This
,
&
locator
,
vbInterface
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
E_FAIL
;
return
hr
;
locator
->
pParserCtxt
=
xmlCreatePushParserCtxt
(
locator
->
pParserCtxt
=
xmlCreatePushParserCtxt
(
&
locator
->
saxreader
->
sax
,
locator
,
&
locator
->
saxreader
->
sax
,
locator
,
...
...
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