Commit 4661a825 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

kernel32: Return some fake data in FindActCtxSectionStringW.

parent 59edd7d8
......@@ -177,8 +177,37 @@ BOOL WINAPI FindActCtxSectionStringW(DWORD dwFlags, const GUID* lpExtGuid,
{
FIXME("%08lx %s %lu %s %p\n", dwFlags, debugstr_guid(lpExtGuid),
ulId, debugstr_w(lpSearchStr), pInfo);
SetLastError( ERROR_CALL_NOT_IMPLEMENTED);
if (lpExtGuid)
{
FIXME("expected lpExtGuid == NULL\n");
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
if (dwFlags & ~FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX)
{
FIXME("unknown dwFlags %08lx\n", dwFlags);
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
if (!pInfo || pInfo->cbSize < sizeof (ACTCTX_SECTION_KEYED_DATA))
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
pInfo->ulDataFormatVersion = 1;
pInfo->lpData = NULL;
pInfo->lpSectionGlobalData = NULL;
pInfo->ulSectionGlobalDataLength = 0;
pInfo->lpSectionBase = NULL;
pInfo->ulSectionTotalLength = 0;
pInfo->hActCtx = ACTCTX_FAKE_HANDLE;
pInfo->ulAssemblyRosterIndex = 0;
return TRUE;
}
/***********************************************************************
......
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