Do not delete section extension when storing it in the structure

See issue #1147,1845 for more details.

svn path=/trunk/; revision=29441
This commit is contained in:
Hervé Poussineau 2007-10-07 17:13:06 +00:00
parent 2012ccfc2f
commit 14a4a98b96

View file

@ -124,7 +124,6 @@ AddKnownDriverToList(
HANDLE hFile = INVALID_HANDLE_VALUE;
BOOL Result = FALSE;
PLIST_ENTRY PreviousEntry;
LPWSTR pDot;
BOOL ret = FALSE;
driverInfo = HeapAlloc(GetProcessHeap(), 0, sizeof(struct DriverInfoElement));
@ -158,9 +157,6 @@ AddKnownDriverToList(
/* Fill SectionName field */
lstrcpynW(driverInfo->Details.SectionName, SectionName, LINE_LEN);
pDot = strchrW(driverInfo->Details.SectionName, '.');
if (pDot)
*pDot = UNICODE_NULL;
/* Fill DrvDescription field */
lstrcpynW(driverInfo->Details.DrvDescription, DriverDescription, LINE_LEN);
@ -271,7 +267,8 @@ AddDriverToList(
Result = SetupGetStringFieldW(
&ContextDevice,
1,
SectionName, LINE_LEN,
SectionName,
LINE_LEN,
NULL);
if (!Result)
goto cleanup;