mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTDLL:LDR]
- Fix buffer size calculation in LdrpSearchPath svn path=/trunk/; revision=63629
This commit is contained in:
@@ -1820,7 +1820,7 @@ LdrpSearchPath(IN PWCHAR *SearchPath,
|
||||
/* FIXME: Handle relative case semicolon-lookup here */
|
||||
|
||||
/* Calculate length */
|
||||
Length += (ULONG)wcslen(DllName) + sizeof(UNICODE_NULL);
|
||||
Length += (ULONG)wcslen(DllName) + 1;
|
||||
if (Length > UNICODE_STRING_MAX_CHARS)
|
||||
{
|
||||
/* Too long, fail */
|
||||
|
||||
Reference in New Issue
Block a user