Displaying 1 result from an estimated 1 matches for "d_handl".
Did you mean:
d_handle
2010 Sep 18
1
find bug:syslinux.exe
...t_active)
{
BOOL result = TRUE;
HANDLE drive;
char driveName[128];
sprintf(driveName, "\\\\.\\PHYSICALDRIVE%d", driveNum);
==========================
It need a drive num!!! It get it from function :
==========================
STORAGE_DEVICE_NUMBER sdn;
if (GetStorageDeviceNumberByHandle(d_handle, &sdn)) {
if (!FixMBR(sdn.DeviceNumber, sdn.PartitionNumber, opt.install_mbr,
opt.activate_partition)) {
==========================
function:
==========================
BOOL GetStorageDeviceNumberByHandle(HANDLE handle,
const STORAGE_DEVICE_NUMBER * sdn)
{
BOOL result = FALSE;
DWORD count;
if...