mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[ret] Use NtFsControlFile status code
NtFsControlFile returns STATUS_SUCCESS when suceeded.
This commit is contained in:
parent
af61ae90e2
commit
b7ab7cc27a
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ static __inline BOOLEAN _IsMounted(IN HANDLE Handle)
|
|||
NTSTATUS Status = STATUS_DLL_NOT_FOUND;
|
||||
PF_INIT(NtFsControlFile, NtDll);
|
||||
if (pfNtFsControlFile != NULL)
|
||||
pfNtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_IS_VOLUME_MOUNTED, 0, 0, 0, 0);
|
||||
Status = pfNtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_IS_VOLUME_MOUNTED, 0, 0, 0, 0);
|
||||
return (BOOLEAN)(Status == STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue