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
bc283fcf
Commit
bc283fcf
authored
Feb 28, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Implement IADsADSystemInfo::get_ComputerName().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8be0a557
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
Makefile.in
dlls/adsldp/Makefile.in
+1
-0
adsldp.c
dlls/adsldp/adsldp.c
+23
-2
sysinfo.c
dlls/adsldp/tests/sysinfo.c
+0
-1
No files found.
dlls/adsldp/Makefile.in
View file @
bc283fcf
MODULE
=
adsldp.dll
IMPORTS
=
oleaut32 secur32
C_SRCS
=
\
adsldp.c
...
...
dlls/adsldp/adsldp.c
View file @
bc283fcf
...
...
@@ -28,6 +28,8 @@
#include "objbase.h"
#include "rpcproxy.h"
#include "iads.h"
#define SECURITY_WIN32
#include "security.h"
#include "wine/debug.h"
...
...
@@ -120,8 +122,27 @@ static HRESULT WINAPI sysinfo_get_UserName(IADsADSystemInfo *iface, BSTR *retval
static
HRESULT
WINAPI
sysinfo_get_ComputerName
(
IADsADSystemInfo
*
iface
,
BSTR
*
retval
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
retval
);
return
E_NOTIMPL
;
UINT
size
;
WCHAR
*
name
;
TRACE
(
"%p,%p
\n
"
,
iface
,
retval
);
size
=
0
;
GetComputerObjectNameW
(
NameFullyQualifiedDN
,
NULL
,
&
size
);
if
(
GetLastError
()
!=
ERROR_INSUFFICIENT_BUFFER
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
name
=
SysAllocStringLen
(
NULL
,
size
);
if
(
!
name
)
return
E_OUTOFMEMORY
;
if
(
!
GetComputerObjectNameW
(
NameFullyQualifiedDN
,
name
,
&
size
))
{
SysFreeString
(
name
);
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
*
retval
=
name
;
return
S_OK
;
}
static
HRESULT
WINAPI
sysinfo_get_SiteName
(
IADsADSystemInfo
*
iface
,
BSTR
*
retval
)
...
...
dlls/adsldp/tests/sysinfo.c
View file @
bc283fcf
...
...
@@ -79,7 +79,6 @@ static void test_ComputerName(void)
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
hr
=
IADsADSystemInfo_get_ComputerName
(
sysinfo
,
&
bstr
);
todo_wine
ok
(
hr
==
S_OK
||
hr
==
HRESULT_FROM_WIN32
(
ERROR_CANT_ACCESS_DOMAIN_INFO
),
"got %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
...
...
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