Fix for advapi32 failing to load (it had imported symbols from itself)

svn path=/trunk/; revision=2325
This commit is contained in:
David Welch 2001-10-31 01:03:04 +00:00
parent 2179744c2c
commit 7e2973b768
4 changed files with 23 additions and 5 deletions

View file

@ -351,4 +351,16 @@ SetSecurityDescriptorSacl (
return TRUE;
}
BOOL STDCALL
GetUserNameA(LPSTR lpBuffer, LPDWORD nSize)
{
return(FALSE);
}
BOOL STDCALL
GetUserNameW(LPWSTR lpBuffer, LPDWORD nSize)
{
return(FALSE);
}
/* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: utils.c,v 1.48 2001/09/08 12:06:33 ekohl Exp $
/* $Id: utils.c,v 1.49 2001/10/31 01:03:04 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -358,6 +358,10 @@ LdrLoadDll (IN PWSTR SearchPath OPTIONAL,
{
Entrypoint =
(PDLLMAIN_FUNC) LdrPEStartup(ImageBase, SectionHandle);
if (Entrypoint == NULL)
{
return(STATUS_UNSUCCESSFUL);
}
}
/* build module entry */

View file

@ -420,7 +420,7 @@ NTSTATUS MmCreateMemoryArea(PEPROCESS Process,
if ((*BaseAddress)==0)
{
DPRINT("No suitable gap\n");
return(STATUS_UNSUCCESSFUL);
return(STATUS_NO_MEMORY);
}
(*BaseAddress)=(*BaseAddress)+PAGESIZE;
}
@ -432,7 +432,7 @@ NTSTATUS MmCreateMemoryArea(PEPROCESS Process,
Length)!=NULL)
{
DPRINT("Memory area already occupied\n");
return(STATUS_UNSUCCESSFUL);
return(STATUS_CONFLICTING_ADDRESSES);
}
}

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: section.c,v 1.64 2001/10/27 15:55:45 hbirr Exp $
/* $Id: section.c,v 1.65 2001/10/31 01:03:04 dwelch Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c
@ -1725,6 +1725,8 @@ MmMapViewOfSegment(PEPROCESS Process,
MmUnlockAddressSpace(&Process->AddressSpace);
if (!NT_SUCCESS(Status))
{
DPRINT1("Mapping between 0x%.8X and 0x%.8X failed.\n",
(*BaseAddress), (*BaseAddress) + ViewSize);
return(Status);
}