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
921e0457
Commit
921e0457
authored
Jun 17, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdsapi: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2cad63d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
Makefile.in
dlls/ntdsapi/Makefile.in
+2
-0
ntdsapi.c
dlls/ntdsapi/ntdsapi.c
+13
-14
No files found.
dlls/ntdsapi/Makefile.in
View file @
921e0457
...
...
@@ -2,5 +2,7 @@ MODULE = ntdsapi.dll
IMPORTLIB
=
ntdsapi
IMPORTS
=
user32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
ntdsapi.c
dlls/ntdsapi/ntdsapi.c
View file @
921e0457
...
...
@@ -24,7 +24,6 @@
#include "winuser.h"
#include "ntdsapi.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdsapi
);
...
...
@@ -83,11 +82,11 @@ DWORD WINAPI DsMakeSpnW(LPCWSTR svc_class, LPCWSTR svc_name,
if
(
!
svc_class
||
!
svc_name
)
return
ERROR_INVALID_PARAMETER
;
new_spn_length
=
strlenW
(
svc_class
)
+
1
/* for '/' */
+
1
/* for terminating '\0' */
;
new_spn_length
=
l
strlenW
(
svc_class
)
+
1
/* for '/' */
+
1
/* for terminating '\0' */
;
if
(
inst_name
)
new_spn_length
+=
strlenW
(
inst_name
);
new_spn_length
+=
l
strlenW
(
inst_name
);
else
new_spn_length
+=
strlenW
(
svc_name
);
new_spn_length
+=
l
strlenW
(
svc_name
);
if
(
inst_port
)
{
USHORT
n
=
inst_port
;
...
...
@@ -99,7 +98,7 @@ DWORD WINAPI DsMakeSpnW(LPCWSTR svc_class, LPCWSTR svc_name,
}
while
(
n
!=
0
);
}
if
(
inst_name
)
new_spn_length
+=
1
/* for '/' */
+
strlenW
(
svc_name
);
new_spn_length
+=
1
/* for '/' */
+
l
strlenW
(
svc_name
);
if
(
*
spn_length
<
new_spn_length
)
{
...
...
@@ -109,21 +108,21 @@ DWORD WINAPI DsMakeSpnW(LPCWSTR svc_class, LPCWSTR svc_name,
*
spn_length
=
new_spn_length
;
p
=
spn
;
len
=
strlenW
(
svc_class
);
len
=
l
strlenW
(
svc_class
);
memcpy
(
p
,
svc_class
,
len
*
sizeof
(
WCHAR
));
p
+=
len
;
*
p
=
'/'
;
p
++
;
if
(
inst_name
)
{
len
=
strlenW
(
inst_name
);
len
=
l
strlenW
(
inst_name
);
memcpy
(
p
,
inst_name
,
len
*
sizeof
(
WCHAR
));
p
+=
len
;
*
p
=
'\0'
;
}
else
{
len
=
strlenW
(
svc_name
);
len
=
l
strlenW
(
svc_name
);
memcpy
(
p
,
svc_name
,
len
*
sizeof
(
WCHAR
));
p
+=
len
;
*
p
=
'\0'
;
...
...
@@ -135,14 +134,14 @@ DWORD WINAPI DsMakeSpnW(LPCWSTR svc_class, LPCWSTR svc_name,
*
p
=
':'
;
p
++
;
wsprintfW
(
p
,
percentU
,
inst_port
);
p
+=
strlenW
(
p
);
p
+=
l
strlenW
(
p
);
}
if
(
inst_name
)
{
*
p
=
'/'
;
p
++
;
len
=
strlenW
(
svc_name
);
len
=
l
strlenW
(
svc_name
);
memcpy
(
p
,
svc_name
,
len
*
sizeof
(
WCHAR
));
p
+=
len
;
*
p
=
'\0'
;
...
...
@@ -216,7 +215,7 @@ DWORD WINAPI DsClientMakeSpnForTargetServerW(LPCWSTR class, LPCWSTR name, DWORD
if
(
!
class
||
!
name
||
!
buflen
)
return
ERROR_INVALID_PARAMETER
;
len
=
strlenW
(
class
)
+
1
+
strlenW
(
name
)
+
1
;
len
=
lstrlenW
(
class
)
+
1
+
l
strlenW
(
name
)
+
1
;
if
(
*
buflen
<
len
)
{
*
buflen
=
len
;
...
...
@@ -224,10 +223,10 @@ DWORD WINAPI DsClientMakeSpnForTargetServerW(LPCWSTR class, LPCWSTR name, DWORD
}
*
buflen
=
len
;
memcpy
(
buf
,
class
,
strlenW
(
class
)
*
sizeof
(
WCHAR
));
p
=
buf
+
strlenW
(
class
);
memcpy
(
buf
,
class
,
l
strlenW
(
class
)
*
sizeof
(
WCHAR
));
p
=
buf
+
l
strlenW
(
class
);
*
p
++
=
'/'
;
memcpy
(
p
,
name
,
strlenW
(
name
)
*
sizeof
(
WCHAR
));
memcpy
(
p
,
name
,
l
strlenW
(
name
)
*
sizeof
(
WCHAR
));
buf
[
len
-
1
]
=
0
;
return
ERROR_SUCCESS
;
...
...
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