Skip to content

Commit

Permalink
Merge pull request #1106 from GuillaumeGomez/comment-typo
Browse files Browse the repository at this point in the history
Fix comment typo
  • Loading branch information
GuillaumeGomez authored Oct 20, 2023
2 parents b5998fa + b19e71b commit 5cd2676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub(crate) unsafe fn get_volume_path_names_for_volume_name(
.map_err(|_| match GetLastError() {
Ok(_) => {
sysinfo_debug!("GetLastError should return an error after GetVolumePathNamesForVolumeNameW returned zero.");
// We return an error in any case that is not `ERROR_MORE_DATA`.
// We return an error in any case that is not `ERROR_MORE_DATA` to stop the loop.
ERROR_UNRECOGNIZED_VOLUME.to_hresult()
}
Err(e) => e.code(),
Expand Down

0 comments on commit 5cd2676

Please sign in to comment.