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
99619619
Commit
99619619
authored
Apr 16, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Apr 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Allow connecting to localhost.
parent
12a2b849
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
services.c
dlls/wbemprox/tests/services.c
+5
-1
wbemlocator.c
dlls/wbemprox/wbemlocator.c
+2
-1
No files found.
dlls/wbemprox/tests/services.c
View file @
99619619
...
...
@@ -111,6 +111,8 @@ static void test_IWbemLocator(void)
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
WCHAR
path25W
[]
=
{
'\\'
,
'\\'
,
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'h'
,
'o'
,
's'
,
't'
,
'\\'
,
'R'
,
'O'
,
'O'
,
'T'
,
0
};
static
const
WCHAR
path26W
[]
=
{
'\\'
,
'\\'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'H'
,
'O'
,
'S'
,
'T'
,
'\\'
,
'R'
,
'O'
,
'O'
,
'T'
,
0
};
static
const
struct
{
const
WCHAR
*
path
;
...
...
@@ -144,7 +146,9 @@ static void test_IWbemLocator(void)
{
path21W
,
S_OK
},
{
path22W
,
S_OK
},
{
path23W
,
WBEM_E_INVALID_NAMESPACE
},
{
path24W
,
WBEM_E_INVALID_NAMESPACE
}
{
path24W
,
WBEM_E_INVALID_NAMESPACE
},
{
path25W
,
S_OK
},
{
path26W
,
S_OK
}
};
IWbemLocator
*
locator
;
IWbemServices
*
services
;
...
...
dlls/wbemprox/wbemlocator.c
View file @
99619619
...
...
@@ -89,10 +89,11 @@ static HRESULT WINAPI wbem_locator_QueryInterface(
static
BOOL
is_local_machine
(
const
WCHAR
*
server
)
{
static
const
WCHAR
dotW
[]
=
{
'.'
,
0
};
static
const
WCHAR
localhostW
[]
=
{
'l'
,
'o'
,
'c'
,
'a'
,
'l'
,
'h'
,
'o'
,
's'
,
't'
,
0
};
WCHAR
buffer
[
MAX_COMPUTERNAME_LENGTH
+
1
];
DWORD
len
=
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]);
if
(
!
server
||
!
strcmpW
(
server
,
dotW
))
return
TRUE
;
if
(
!
server
||
!
strcmpW
(
server
,
dotW
)
||
!
strcmpiW
(
server
,
localhostW
)
)
return
TRUE
;
if
(
GetComputerNameW
(
buffer
,
&
len
)
&&
!
strcmpiW
(
server
,
buffer
))
return
TRUE
;
return
FALSE
;
}
...
...
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