mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS] Use correct buffer size when calling MiResolveImageReferences. CORE-15882
This commit is contained in:
parent
ccb91bebbe
commit
f3a280f52b
2 changed files with 6 additions and 2 deletions
|
@ -735,7 +735,9 @@ LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
|
|||
PVOID DriverBase = LdrEntry->DllBase;
|
||||
|
||||
/* Allocate a buffer we'll use for names */
|
||||
Buffer = ExAllocatePoolWithTag(NonPagedPool, MAX_PATH, TAG_LDR_WSTR);
|
||||
Buffer = ExAllocatePoolWithTag(NonPagedPool,
|
||||
MAXIMUM_FILENAME_LENGTH,
|
||||
TAG_LDR_WSTR);
|
||||
if (!Buffer)
|
||||
{
|
||||
/* Fail */
|
||||
|
|
|
@ -2793,7 +2793,9 @@ MmLoadSystemImage(IN PUNICODE_STRING FileName,
|
|||
}
|
||||
|
||||
/* Allocate a buffer we'll use for names */
|
||||
Buffer = ExAllocatePoolWithTag(NonPagedPool, MAX_PATH, TAG_LDR_WSTR);
|
||||
Buffer = ExAllocatePoolWithTag(NonPagedPool,
|
||||
MAXIMUM_FILENAME_LENGTH,
|
||||
TAG_LDR_WSTR);
|
||||
if (!Buffer) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
/* Check for a separator */
|
||||
|
|
Loading…
Reference in a new issue