From edfe66b0147b7bce7629e074ad686206491aa531 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 14 Dec 2016 01:11:56 +0000 Subject: __ntapi_tt_get_dos_drive_mount_points(): simplify logic. --- src/fs/ntapi_tt_mount.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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, -- cgit v1.2.3