[PATCH 1/4] hnetcfg: Don't use _GetValue() if text element is missing in get_xml_elements().
Paul Gofman
pgofman at codeweavers.com
Thu Feb 3 05:28:31 CST 2022
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/hnetcfg/port.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/hnetcfg/port.c b/dlls/hnetcfg/port.c
index def77621764..611a652ce5e 100644
--- a/dlls/hnetcfg/port.c
+++ b/dlls/hnetcfg/port.c
@@ -265,7 +265,10 @@ static BOOL get_xml_elements( const char *desc_xml, struct xml_value_desc *value
if (node_type == XmlNodeType_EndElement) value = L"";
else goto done;
}
- if (FAILED(IXmlReader_GetValue( reader, &value, NULL ))) goto done;
+ else
+ {
+ if (FAILED(IXmlReader_GetValue( reader, &value, NULL ))) goto done;
+ }
if (values[i].value)
{
WARN( "Duplicate value %s.\n", debugstr_w(values[i].name) );
--
2.34.1
More information about the wine-devel
mailing list