Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
05cb6543
Commit
05cb6543
authored
Sep 10, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Strip curly brackets from path strings.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ca455c53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wql.y
dlls/wbemprox/wql.y
+6
-0
No files found.
dlls/wbemprox/wql.y
View file @
05cb6543
...
@@ -103,6 +103,12 @@ static WCHAR *get_path( struct parser *parser, const struct string *str )
...
@@ -103,6 +103,12 @@ static WCHAR *get_path( struct parser *parser, const struct string *str )
int len = str->len;
int len = str->len;
WCHAR *ret;
WCHAR *ret;
if (p[0] == '{' && p[len - 1] == '}')
{
p++;
len -= 2;
}
if (!(ret = alloc_mem( parser, (len + 1) * sizeof(WCHAR) ))) return NULL;
if (!(ret = alloc_mem( parser, (len + 1) * sizeof(WCHAR) ))) return NULL;
memcpy( ret, p, len * sizeof(WCHAR) );
memcpy( ret, p, len * sizeof(WCHAR) );
ret[len] = 0;
ret[len] = 0;
...
...
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