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
2a1841f5
Commit
2a1841f5
authored
Mar 13, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activeds: ADsOpenObject should return E_FAIL by default.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3eb581db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
activeds_main.c
dlls/activeds/activeds_main.c
+3
-3
Makefile.in
dlls/adsldp/tests/Makefile.in
+1
-1
ldap.c
dlls/adsldp/tests/ldap.c
+6
-0
No files found.
dlls/activeds/activeds_main.c
View file @
2a1841f5
...
...
@@ -127,10 +127,10 @@ HRESULT WINAPI ADsOpenObject(LPCWSTR path, LPCWSTR user, LPCWSTR password, DWORD
if
(
!
path
||
!
riid
||
!
obj
)
return
E_INVALIDARG
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
Microsoft
\\
ADs
\\
Providers"
,
0
,
KEY_READ
,
&
hkey
))
return
E_ADS_BAD_PATHNAME
;
hr
=
E_FAIL
;
hr
=
E_ADS_BAD_PATHNAME
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
Microsoft
\\
ADs
\\
Providers"
,
0
,
KEY_READ
,
&
hkey
))
return
hr
;
for
(;;)
{
...
...
dlls/adsldp/tests/Makefile.in
View file @
2a1841f5
TESTDLL
=
adsldp.dll
IMPORTS
=
ole32 oleaut32 secur32 advapi32 uuid
IMPORTS
=
ole32 oleaut32 secur32 advapi32
activeds
uuid
C_SRCS
=
\
ldap.c
\
...
...
dlls/adsldp/tests/ldap.c
View file @
2a1841f5
...
...
@@ -28,6 +28,7 @@
#include "objbase.h"
#include "iads.h"
#include "adserr.h"
#include "adshlp.h"
#include "wine/test.h"
...
...
@@ -98,6 +99,11 @@ static void test_LDAP(void)
if
(
hr
==
S_OK
)
IDispatch_Release
(
disp
);
hr
=
ADsOpenObject
(
path
,
user
,
password
,
test
[
i
].
flags
,
&
IID_IADs
,
(
void
**
)
&
ads
);
ok
(
hr
==
test
[
i
].
hr
||
hr
==
test
[
i
].
hr_ads_get
,
"%d: got %#x, expected %#x
\n
"
,
i
,
hr
,
test
[
i
].
hr
);
if
(
hr
==
S_OK
)
IADs_Release
(
ads
);
SysFreeString
(
path
);
SysFreeString
(
user
);
SysFreeString
(
password
);
...
...
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