Author: tfaber
Date: Sun Jun 22 18:40:21 2014
New Revision: 63629
URL:
http://svn.reactos.org/svn/reactos?rev=63629&view=rev
Log:
[NTDLL:LDR]
- Fix buffer size calculation in LdrpSearchPath
Modified:
trunk/reactos/dll/ntdll/ldr/ldrutils.c
Modified: trunk/reactos/dll/ntdll/ldr/ldrutils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrutils.c?r…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrutils.c [iso-8859-1] Sun Jun 22 18:40:21 2014
@@ -1820,7 +1820,7 @@
/* 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 */