mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:52:58 +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;
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue