diff options
author | midipix <writeonce@midipix.org> | 2016-12-14 01:11:56 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-15 01:47:41 -0500 |
commit | edfe66b0147b7bce7629e074ad686206491aa531 (patch) | |
tree | fdde9c1bf7baffda4cc3d8cf489490a7cd8470d4 /src | |
parent | 71f050d9f03b17ee2eb94f203297db149c518846 (diff) | |
download | ntapi-edfe66b0147b7bce7629e074ad686206491aa531.tar.bz2 ntapi-edfe66b0147b7bce7629e074ad686206491aa531.tar.xz |
__ntapi_tt_get_dos_drive_mount_points(): simplify logic.
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/ntapi_tt_mount.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fs/ntapi_tt_mount.c b/src/fs/ntapi_tt_mount.c index c149e53..2d8be0a 100644 --- a/src/fs/ntapi_tt_mount.c +++ b/src/fs/ntapi_tt_mount.c @@ -249,11 +249,8 @@ int32_t __stdcall __ntapi_tt_get_dos_drive_mount_points( if (!__ntapi_internals()->hdev_mount_point_mgr) - status = __tt_connect_to_mount_point_manager(); - - if (!__ntapi_internals()->hdev_mount_point_mgr) - return status; - + if ((status = __tt_connect_to_mount_point_manager())) + return status; status = __ntapi->zw_device_io_control_file( __ntapi_internals()->hdev_mount_point_mgr, |