ntdll: Ignore activation context entries that don't specify a path.

This commit is contained in:
Alexandre Julliard 2009-08-05 11:23:16 +02:00
parent c10bdbefd6
commit b76dc21b82
1 changed files with 6 additions and 0 deletions

View File

@ -1716,6 +1716,12 @@ static NTSTATUS find_actctx_dll( LPCWSTR libname, LPWSTR *fullname )
/* restart with larger buffer */ /* restart with larger buffer */
} }
if (!info->lpAssemblyManifestPath || !info->lpAssemblyDirectoryName)
{
status = STATUS_SXS_KEY_NOT_FOUND;
goto done;
}
if ((p = strrchrW( info->lpAssemblyManifestPath, '\\' ))) if ((p = strrchrW( info->lpAssemblyManifestPath, '\\' )))
{ {
DWORD dirlen = info->ulAssemblyDirectoryNameLength / sizeof(WCHAR); DWORD dirlen = info->ulAssemblyDirectoryNameLength / sizeof(WCHAR);