mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-01-26 22:23:21 -05:00
Optimization for Ventoy2Disk.exe
This commit is contained in:
parent
ee104bfa97
commit
52ae65f54d
Binary file not shown.
@ -504,7 +504,9 @@ int FindProcessOccupyDisk(HANDLE hDrive, PHY_DRIVE_INFO *pPhyDrive)
|
|||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
for (i = 0;; i++) {
|
Log("handles->NumberOfHandles = %lu", (ULONG)handles->NumberOfHandles);
|
||||||
|
|
||||||
|
for (i = 0; i < handles->NumberOfHandles; i++) {
|
||||||
ULONG attempts = 8;
|
ULONG attempts = 8;
|
||||||
PSYSTEM_HANDLE_TABLE_ENTRY_INFO_EX handleInfo =
|
PSYSTEM_HANDLE_TABLE_ENTRY_INFO_EX handleInfo =
|
||||||
(i < handles->NumberOfHandles) ? &handles->Handles[i] : NULL;
|
(i < handles->NumberOfHandles) ? &handles->Handles[i] : NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user