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