Dmitry Timoshkov : activeds: Implement AllocADsStr and FreeADsStr.
Alexandre Julliard
julliard at winehq.org
Tue Feb 18 16:13:48 CST 2020
Module: wine
Branch: master
Commit: 9692f48a31cdc750156d3b1d867d3ca9733aa5f9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9692f48a31cdc750156d3b1d867d3ca9733aa5f9
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Feb 18 19:33:41 2020 +0800
activeds: Implement AllocADsStr and FreeADsStr.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/activeds/activeds_main.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/dlls/activeds/activeds_main.c b/dlls/activeds/activeds_main.c
index e8955ee815..c997cab912 100644
--- a/dlls/activeds/activeds_main.c
+++ b/dlls/activeds/activeds_main.c
@@ -237,8 +237,18 @@ LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
*/
LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
{
- FIXME("(%p)!stub\n",pStr);
- return NULL;
+ LPWSTR ret;
+ SIZE_T len;
+
+ TRACE("(%p)\n", pStr);
+
+ if (!pStr) return NULL;
+
+ len = (wcslen(pStr) + 1) * sizeof(WCHAR);
+ ret = AllocADsMem(len);
+ if (ret) memcpy(ret, pStr, len);
+
+ return ret;
}
/*****************************************************
@@ -246,8 +256,9 @@ LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
*/
BOOL WINAPI FreeADsStr(LPWSTR pStr)
{
- FIXME("(%p)!stub\n",pStr);
- return FALSE;
+ TRACE("(%p)\n", pStr);
+
+ return FreeADsMem(pStr);
}
/*****************************************************
More information about the wine-cvs
mailing list