Commit 9fb0d9fe authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

setupapi: Remove unused end parameter from next_xml_attr internal function.

parent e5d78027
...@@ -554,8 +554,7 @@ static BOOL next_xml_elem( xmlbuf_t *xmlbuf, xmlstr_t *elem ) ...@@ -554,8 +554,7 @@ static BOOL next_xml_elem( xmlbuf_t *xmlbuf, xmlstr_t *elem )
return xmlbuf->ptr != xmlbuf->end; return xmlbuf->ptr != xmlbuf->end;
} }
static BOOL next_xml_attr(xmlbuf_t* xmlbuf, xmlstr_t* name, xmlstr_t* value, static BOOL next_xml_attr(xmlbuf_t* xmlbuf, xmlstr_t* name, xmlstr_t* value, BOOL* error)
BOOL* error, BOOL* end)
{ {
const char *ptr; const char *ptr;
...@@ -573,7 +572,6 @@ static BOOL next_xml_attr(xmlbuf_t* xmlbuf, xmlstr_t* name, xmlstr_t* value, ...@@ -573,7 +572,6 @@ static BOOL next_xml_attr(xmlbuf_t* xmlbuf, xmlstr_t* name, xmlstr_t* value,
return FALSE; return FALSE;
xmlbuf->ptr++; xmlbuf->ptr++;
*end = TRUE;
*error = FALSE; *error = FALSE;
return FALSE; return FALSE;
} }
...@@ -727,7 +725,7 @@ static BOOL CALLBACK register_manifest( HMODULE module, const WCHAR *type, WCHAR ...@@ -727,7 +725,7 @@ static BOOL CALLBACK register_manifest( HMODULE module, const WCHAR *type, WCHAR
xmlbuf_t buffer; xmlbuf_t buffer;
xmlstr_t elem, attr_name, attr_value; xmlstr_t elem, attr_name, attr_value;
xmlstr_t name, version, arch, key, lang; xmlstr_t name, version, arch, key, lang;
BOOL end = FALSE, error; BOOL error;
const char *manifest; const char *manifest;
SIZE_T len; SIZE_T len;
HRSRC rsrc; HRSRC rsrc;
...@@ -746,7 +744,7 @@ static BOOL CALLBACK register_manifest( HMODULE module, const WCHAR *type, WCHAR ...@@ -746,7 +744,7 @@ static BOOL CALLBACK register_manifest( HMODULE module, const WCHAR *type, WCHAR
while (next_xml_elem( &buffer, &elem )) while (next_xml_elem( &buffer, &elem ))
{ {
if (!xmlstr_cmp( &elem, "assemblyIdentity" )) continue; if (!xmlstr_cmp( &elem, "assemblyIdentity" )) continue;
while (next_xml_attr( &buffer, &attr_name, &attr_value, &error, &end )) while (next_xml_attr( &buffer, &attr_name, &attr_value, &error ))
{ {
if (xmlstr_cmp(&attr_name, "name")) name = attr_value; if (xmlstr_cmp(&attr_name, "name")) name = attr_value;
else if (xmlstr_cmp(&attr_name, "version")) version = attr_value; else if (xmlstr_cmp(&attr_name, "version")) version = attr_value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment