mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-04 16:53:54 -04:00
[wdk] added WDK build file
This commit is contained in:
parent
8fa8faf510
commit
67a07909b1
4 changed files with 35 additions and 4 deletions
4
rufus.c
4
rufus.c
|
@ -26,6 +26,7 @@
|
|||
#include <string.h>
|
||||
#include <commctrl.h>
|
||||
#include <setupapi.h>
|
||||
#include <winioctl.h>
|
||||
// TODO: MinGW32 requires <ddk/ntddscsi.h>
|
||||
#include <ntddscsi.h>
|
||||
// http://doc.sch130.nsc.ru/www.sysinternals.com/ntw2k/source/fmifs.shtml
|
||||
|
@ -263,6 +264,7 @@ static BOOL GetUSBDevices(void)
|
|||
HANDLE hDrive;
|
||||
char drive_letter;
|
||||
char *label, entry[MAX_PATH], buffer[MAX_PATH];
|
||||
const char* usbstor_name = "USBSTOR";
|
||||
|
||||
IGNORE_RETVAL(ComboBox_ResetContent(hDeviceList));
|
||||
|
||||
|
@ -281,7 +283,7 @@ static BOOL GetUSBDevices(void)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (safe_strcmp(buffer, "USBSTOR") != 0)
|
||||
if (safe_strcmp(buffer, usbstor_name) != 0)
|
||||
continue;
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
if (!SetupDiGetDeviceRegistryPropertyA(dev_info, &dev_info_data, SPDRP_FRIENDLYNAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue