mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Allocate room for terminator. Fixes bug 1203, r20343 can be re-applied.
svn path=/trunk/; revision=20472
This commit is contained in:
parent
1523f688af
commit
b907d39b7a
1 changed files with 1 additions and 1 deletions
|
@ -5608,7 +5608,7 @@ SetupDiBuildDriverInfoList(
|
|||
currentInfFileDetails = HeapAlloc(
|
||||
GetProcessHeap(),
|
||||
0,
|
||||
FIELD_OFFSET(struct InfFileDetails, FullInfFileName) + wcslen(FullInfFileName) * sizeof(WCHAR) + UNICODE_NULL);
|
||||
FIELD_OFFSET(struct InfFileDetails, FullInfFileName) + wcslen(FullInfFileName) * sizeof(WCHAR) + sizeof(UNICODE_NULL));
|
||||
if (!currentInfFileDetails)
|
||||
continue;
|
||||
memset(currentInfFileDetails, 0, sizeof(struct InfFileDetails));
|
||||
|
|
Loading…
Reference in a new issue