Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
52ae65f5
"vscode:/vscode.git/clone" did not exist on "e419bb1c0f6b5f907fe037bb0c4df0956b70e1b7"
Commit
52ae65f5
authored
Oct 20, 2021
by
longpanda
Browse files
Optimization for Ventoy2Disk.exe
parent
ee104bfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
INSTALL/Ventoy2Disk.exe
INSTALL/Ventoy2Disk.exe
+0
-0
Ventoy2Disk/Ventoy2Disk/process.c
Ventoy2Disk/Ventoy2Disk/process.c
+3
-1
No files found.
INSTALL/Ventoy2Disk.exe
View file @
52ae65f5
No preview for this file type
Ventoy2Disk/Ventoy2Disk/process.c
View file @
52ae65f5
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment