Author: cwittich
Date: Sat Aug 8 13:20:39 2015
New Revision: 68629
URL:
http://svn.reactos.org/svn/reactos?rev=68629&view=rev
Log:
[SETUPAPI]
RequiredSize must be in characters in SetupGetInfFileListW
Modified:
trunk/reactos/dll/win32/setupapi/parser.c
Modified: trunk/reactos/dll/win32/setupapi/parser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/parser.…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/parser.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/parser.c [iso-8859-1] Sat Aug 8 13:20:39 2015
@@ -2224,7 +2224,7 @@
}
len = strlenW(wfdFileInfo.cFileName) + 1;
- requiredSize += (DWORD)(len * sizeof(WCHAR));
+ requiredSize += (DWORD)len;
if (requiredSize <= ReturnBufferSize)
{
strcpyW(pBuffer, wfdFileInfo.cFileName);
@@ -2234,7 +2234,7 @@
} while (FindNextFileW(hSearch, &wfdFileInfo));
FindClose(hSearch);
- requiredSize += sizeof(WCHAR); /* Final NULL char */
+ requiredSize += 1; /* Final NULL char */
if (requiredSize <= ReturnBufferSize)
{
*pBuffer = '\0';