From cc6dbe9490a225af4a8e66fa7ce0ef43f207640e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 21 Nov 2015 09:21:43 +0000 Subject: [PATCH] [NTDSAPI] Sync with Wine Staging 1.7.55. CORE-10536 svn path=/trunk/; revision=69972 --- reactos/dll/win32/ntdsapi/ntdsapi.c | 26 ++++++++++++++++++++++++++ reactos/dll/win32/ntdsapi/ntdsapi.spec | 2 +- reactos/media/doc/README.WINE | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/ntdsapi/ntdsapi.c b/reactos/dll/win32/ntdsapi/ntdsapi.c index 4e3e682690b..6d016ad984a 100644 --- a/reactos/dll/win32/ntdsapi/ntdsapi.c +++ b/reactos/dll/win32/ntdsapi/ntdsapi.c @@ -205,3 +205,29 @@ DWORD WINAPI DsServerRegisterSpnW(DS_SPN_WRITE_OP operation, LPCWSTR ServiceClas debugstr_w(ServiceClass), debugstr_w(UserObjectDN)); return ERROR_CALL_NOT_IMPLEMENTED; } + +DWORD WINAPI DsClientMakeSpnForTargetServerW(LPCWSTR class, LPCWSTR name, DWORD *buflen, LPWSTR buf) +{ + DWORD len; + WCHAR *p; + + TRACE("(%s,%s,%p,%p)\n", debugstr_w(class), debugstr_w(name), buflen, buf); + + if (!class || !name || !buflen) return ERROR_INVALID_PARAMETER; + + len = strlenW(class) + 1 + strlenW(name) + 1; + if (*buflen < len) + { + *buflen = len; + return ERROR_BUFFER_OVERFLOW; + } + *buflen = len; + + memcpy(buf, class, strlenW(class) * sizeof(WCHAR)); + p = buf + strlenW(class); + *p++ = '/'; + memcpy(p, name, strlenW(name) * sizeof(WCHAR)); + buf[len - 1] = 0; + + return ERROR_SUCCESS; +} diff --git a/reactos/dll/win32/ntdsapi/ntdsapi.spec b/reactos/dll/win32/ntdsapi/ntdsapi.spec index b3ed8bea970..925cb713585 100644 --- a/reactos/dll/win32/ntdsapi/ntdsapi.spec +++ b/reactos/dll/win32/ntdsapi/ntdsapi.spec @@ -7,7 +7,7 @@ @ stub DsBindWithSpnA @ stub DsBindWithSpnW @ stub DsClientMakeSpnForTargetServerA -@ stub DsClientMakeSpnForTargetServerW +@ stdcall DsClientMakeSpnForTargetServerW(wstr wstr ptr ptr) @ stub DsCrackNamesA @ stub DsCrackNamesW @ stub DsCrackSpn2A diff --git a/reactos/media/doc/README.WINE b/reactos/media/doc/README.WINE index bafa983bc40..1804f315e38 100644 --- a/reactos/media/doc/README.WINE +++ b/reactos/media/doc/README.WINE @@ -138,7 +138,7 @@ reactos/dll/win32/msxml6 # Synced to WineStaging-1.7.47 reactos/dll/win32/nddeapi # Synced to WineStaging-1.7.47 reactos/dll/win32/netapi32 # Forked at Wine-1.3.34 reactos/dll/win32/npptools # Synced to WineStaging-1.7.47 -reactos/dll/win32/ntdsapi # Synced to WineStaging-1.7.47 +reactos/dll/win32/ntdsapi # Synced to WineStaging-1.7.55 reactos/dll/win32/ntprint # Synced to WineStaging-1.7.47 reactos/dll/win32/objsel # Synced to WineStaging-1.7.47 reactos/dll/win32/odbc32 # Synced to WineStaging-1.7.37. Depends on port of Linux ODBC.