Author: janderwald Date: Sat Feb 28 11:28:06 2015 New Revision: 66492 URL: http://svn.reactos.org/svn/reactos?rev=66492&view=rev Log: [STREAMCI] - minor changes
Modified: trunk/reactos/dll/win32/streamci/streamci.c Modified: trunk/reactos/dll/win32/streamci/streamci.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/streamci/streamci.c?rev=66492&r1=66491&r2=66492&view=diff ============================================================================== --- trunk/reactos/dll/win32/streamci/streamci.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/streamci/streamci.c [iso-8859-1] Sat Feb 28 11:28:06 2015 @@ -1,3 +1,12 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Configuration of network devices + * FILE: dll/win32/streamci/streamci.c + * PURPOSE: Streaming device class installer + * + * PROGRAMMERS: Johannes Anderwald (janderw...@reactos.org) + */ + #include "precomp.h" DWORD @@ -56,7 +65,7 @@ PSWENUM_INSTALL_INTERFACE InstallInterface; DWORD dwResult; - hDevInfo = SetupDiGetClassDevsW(&GUID_DEVCLASS_SYSTEM, NULL, NULL, DIGCF_DEVICEINTERFACE| DIGCF_PRESENT); + hDevInfo = SetupDiGetClassDevsW(&SWBusGuid, NULL, NULL, DIGCF_DEVICEINTERFACE| DIGCF_PRESENT); if (!hDevInfo) { // failed @@ -79,6 +88,7 @@ return GetLastError(); } + DeviceInterfaceDetailData->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W); if (!SetupDiGetDeviceInterfaceDetailW(hDevInfo, &DeviceInterfaceData, DeviceInterfaceDetailData,MAX_PATH * sizeof(WCHAR) + sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W), NULL, NULL)) { // failed @@ -86,7 +96,6 @@ SetupDiDestroyDeviceInfoList(hDevInfo); return GetLastError(); } - hDevice = CreateFileW(DeviceInterfaceDetailData->DevicePath, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED|FILE_ATTRIBUTE_NORMAL, NULL); if (hDevice == INVALID_HANDLE_VALUE)