Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d799a664
Commit
d799a664
authored
Aug 21, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Accept the root\default namespace.
parent
00bbc620
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
services.c
dlls/wbemprox/tests/services.c
+7
-1
wbemlocator.c
dlls/wbemprox/wbemlocator.c
+4
-1
No files found.
dlls/wbemprox/tests/services.c
View file @
d799a664
...
@@ -108,6 +108,9 @@ static void test_IWbemLocator(void)
...
@@ -108,6 +108,9 @@ static void test_IWbemLocator(void)
static
const
WCHAR
path19W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'\\'
,
'\\'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
0
};
static
const
WCHAR
path19W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'\\'
,
'\\'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
0
};
static
const
WCHAR
path20W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'\\'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
'\\'
,
0
};
static
const
WCHAR
path20W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'\\'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
'\\'
,
0
};
static
const
WCHAR
path21W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'/'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
0
};
static
const
WCHAR
path21W
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
'/'
,
'C'
,
'I'
,
'M'
,
'V'
,
'2'
,
0
};
static
const
WCHAR
path22W
[]
=
{
'r'
,
'o'
,
'o'
,
't'
,
'\\'
,
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
static
const
WCHAR
path23W
[]
=
{
'r'
,
'o'
,
'o'
,
't'
,
'\\'
,
'c'
,
'i'
,
'm'
,
'v'
,
'0'
,
0
};
static
const
WCHAR
path24W
[]
=
{
'r'
,
'o'
,
'o'
,
't'
,
'\\'
,
'c'
,
'i'
,
'm'
,
'v'
,
'1'
,
0
};
static
const
struct
static
const
struct
{
{
const
WCHAR
*
path
;
const
WCHAR
*
path
;
...
@@ -138,7 +141,10 @@ static void test_IWbemLocator(void)
...
@@ -138,7 +141,10 @@ static void test_IWbemLocator(void)
{
path18W
,
S_OK
},
{
path18W
,
S_OK
},
{
path19W
,
WBEM_E_INVALID_NAMESPACE
},
{
path19W
,
WBEM_E_INVALID_NAMESPACE
},
{
path20W
,
WBEM_E_INVALID_NAMESPACE
},
{
path20W
,
WBEM_E_INVALID_NAMESPACE
},
{
path21W
,
S_OK
}
{
path21W
,
S_OK
},
{
path22W
,
S_OK
},
{
path23W
,
WBEM_E_INVALID_NAMESPACE
},
{
path24W
,
WBEM_E_INVALID_NAMESPACE
}
};
};
IWbemLocator
*
locator
;
IWbemLocator
*
locator
;
IWbemServices
*
services
;
IWbemServices
*
services
;
...
...
dlls/wbemprox/wbemlocator.c
View file @
d799a664
...
@@ -101,6 +101,7 @@ static HRESULT parse_resource( const WCHAR *resource, WCHAR **server, WCHAR **na
...
@@ -101,6 +101,7 @@ static HRESULT parse_resource( const WCHAR *resource, WCHAR **server, WCHAR **na
{
{
static
const
WCHAR
rootW
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
};
static
const
WCHAR
rootW
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
};
static
const
WCHAR
cimv2W
[]
=
{
'C'
,
'I'
,
'M'
,
'V'
,
'2'
};
static
const
WCHAR
cimv2W
[]
=
{
'C'
,
'I'
,
'M'
,
'V'
,
'2'
};
static
const
WCHAR
defaultW
[]
=
{
'D'
,
'E'
,
'F'
,
'A'
,
'U'
,
'L'
,
'T'
};
HRESULT
hr
=
WBEM_E_INVALID_NAMESPACE
;
HRESULT
hr
=
WBEM_E_INVALID_NAMESPACE
;
const
WCHAR
*
p
,
*
q
;
const
WCHAR
*
p
,
*
q
;
unsigned
int
len
;
unsigned
int
len
;
...
@@ -138,7 +139,9 @@ static HRESULT parse_resource( const WCHAR *resource, WCHAR **server, WCHAR **na
...
@@ -138,7 +139,9 @@ static HRESULT parse_resource( const WCHAR *resource, WCHAR **server, WCHAR **na
goto
done
;
goto
done
;
}
}
q
++
;
q
++
;
if
((
len
=
strlenW
(
q
))
!=
sizeof
(
cimv2W
)
/
sizeof
(
cimv2W
[
0
])
||
memicmpW
(
q
,
cimv2W
,
len
))
len
=
strlenW
(
q
);
if
((
len
!=
sizeof
(
cimv2W
)
/
sizeof
(
cimv2W
[
0
])
||
memicmpW
(
q
,
cimv2W
,
len
))
&&
(
len
!=
sizeof
(
defaultW
)
/
sizeof
(
defaultW
[
0
])
||
memicmpW
(
q
,
defaultW
,
len
)))
goto
done
;
goto
done
;
if
(
!
(
*
namespace
=
heap_alloc
(
(
len
+
1
)
*
sizeof
(
WCHAR
)
)))
hr
=
E_OUTOFMEMORY
;
if
(
!
(
*
namespace
=
heap_alloc
(
(
len
+
1
)
*
sizeof
(
WCHAR
)
)))
hr
=
E_OUTOFMEMORY
;
else
else
...
...
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