Module: wine Branch: master Commit: 4661a825b7c50c9507901d035c90fc89342908f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4661a825b7c50c9507901d035c... Author: Mike McCormack <mike(a)codeweavers.com> Date: Thu Oct 5 15:12:35 2006 +0900 kernel32: Return some fake data in FindActCtxSectionStringW. --- dlls/kernel32/actctx.c | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/actctx.c b/dlls/kernel32/actctx.c index 9bb698f..853ffc5 100644 --- a/dlls/kernel32/actctx.c +++ b/dlls/kernel32/actctx.c @@ -176,9 +176,38 @@ BOOL WINAPI FindActCtxSectionStringW(DWO PACTCTX_SECTION_KEYED_DATA pInfo) { FIXME("%08lx %s %lu %s %p\n", dwFlags, debugstr_guid(lpExtGuid), - ulId, debugstr_w(lpSearchStr), pInfo); - SetLastError( ERROR_CALL_NOT_IMPLEMENTED); - return FALSE; + ulId, debugstr_w(lpSearchStr), pInfo); + + 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; } /***********************************************************************