Author: hpoussin Date: Sun Oct 7 21:13:06 2007 New Revision: 29441
URL: http://svn.reactos.org/svn/reactos?rev=29441&view=rev Log: Do not delete section extension when storing it in the structure See issue #1147,1845 for more details.
Modified: trunk/reactos/dll/win32/setupapi/driver.c
Modified: trunk/reactos/dll/win32/setupapi/driver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/driver.c... ============================================================================== --- trunk/reactos/dll/win32/setupapi/driver.c (original) +++ trunk/reactos/dll/win32/setupapi/driver.c Sun Oct 7 21:13:06 2007 @@ -124,7 +124,6 @@ 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 @@
/* 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 @@ Result = SetupGetStringFieldW( &ContextDevice, 1, - SectionName, LINE_LEN, + SectionName, + LINE_LEN, NULL); if (!Result) goto cleanup;