Hans Leidekker : wbemprox: Strip curly brackets from path strings.
Alexandre Julliard
julliard at winehq.org
Tue Sep 10 16:49:29 CDT 2019
Module: wine
Branch: master
Commit: 05cb6543b067eb81b1882b5719377d75df1df965
URL: https://source.winehq.org/git/wine.git/?a=commit;h=05cb6543b067eb81b1882b5719377d75df1df965
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Sep 10 17:09:08 2019 +0200
wbemprox: Strip curly brackets from path strings.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list