"vscode:/vscode.git/clone" did not exist on "e419bb1c0f6b5f907fe037bb0c4df0956b70e1b7"
Commit 52ae65f5 authored by longpanda's avatar longpanda
Browse files

Optimization for Ventoy2Disk.exe

parent ee104bfa
No preview for this file type
...@@ -504,7 +504,9 @@ int FindProcessOccupyDisk(HANDLE hDrive, PHY_DRIVE_INFO *pPhyDrive) ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment