[PATCH 1/7] wbemprox: Strip curly brackets from path strings.

Hans Leidekker hans at codeweavers.com
Tue Sep 10 10:09:08 CDT 2019


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/wbemprox/wql.y | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/wbemprox/wql.y b/dlls/wbemprox/wql.y
index a0a9c7b802..99279149ae 100644
--- a/dlls/wbemprox/wql.y
+++ b/dlls/wbemprox/wql.y
@@ -103,6 +103,12 @@ static WCHAR *get_path( struct parser *parser, const struct string *str )
     int len = str->len;
     WCHAR *ret;
 
+    if (p[0] == '{' && p[len - 1] == '}')
+    {
+        p++;
+        len -= 2;
+    }
+
     if (!(ret = alloc_mem( parser, (len + 1) * sizeof(WCHAR) ))) return NULL;
     memcpy( ret, p, len * sizeof(WCHAR) );
     ret[len] = 0;
-- 
2.20.1




More information about the wine-devel mailing list