mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:52:05 +00:00
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:
parent
2012ccfc2f
commit
14a4a98b96
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue