[NTDLL:LDR]

- Fix buffer size calculation in LdrpSearchPath

svn path=/trunk/; revision=63629
This commit is contained in:
Thomas Faber
2014-06-22 18:40:21 +00:00
parent faa29d8704
commit ce303598e9
+1 -1
View File
@@ -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 */