Commit 9692f48a authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

activeds: Implement AllocADsStr and FreeADsStr.

parent e8960174
...@@ -237,8 +237,18 @@ LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew) ...@@ -237,8 +237,18 @@ LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
*/ */
LPWSTR WINAPI AllocADsStr(LPWSTR pStr) LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
{ {
FIXME("(%p)!stub\n",pStr); LPWSTR ret;
return NULL; 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) ...@@ -246,8 +256,9 @@ LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
*/ */
BOOL WINAPI FreeADsStr(LPWSTR pStr) BOOL WINAPI FreeADsStr(LPWSTR pStr)
{ {
FIXME("(%p)!stub\n",pStr); TRACE("(%p)\n", pStr);
return FALSE;
return FreeADsMem(pStr);
} }
/***************************************************** /*****************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment