Skip to content
Snippets Groups Projects
Unverified Commit b9673cf9 authored by Brian Carrier's avatar Brian Carrier Committed by GitHub
Browse files

Merge pull request #2479 from uckelman-sf/image_case_order

Put image type cases in the order defined by their enum
parents 65d2cb83 de3f0bd5
No related branches found
No related tags found
No related merge requests found
...@@ -230,18 +230,6 @@ tsk_img_open(int num_img, ...@@ -230,18 +230,6 @@ tsk_img_open(int num_img,
return NULL; return NULL;
} }
#if HAVE_LIBVHDI
case TSK_IMG_TYPE_VHD_VHD:
img_info = vhdi_open(num_img, images, a_ssize);
break;
#endif
#if HAVE_LIBVMDK
case TSK_IMG_TYPE_VMDK_VMDK:
img_info = vmdk_open(num_img, images, a_ssize);
break;
#endif
case TSK_IMG_TYPE_RAW: case TSK_IMG_TYPE_RAW:
img_info = raw_open(num_img, images, a_ssize); img_info = raw_open(num_img, images, a_ssize);
break; break;
...@@ -261,6 +249,18 @@ tsk_img_open(int num_img, ...@@ -261,6 +249,18 @@ tsk_img_open(int num_img,
break; break;
#endif #endif
#if HAVE_LIBVMDK
case TSK_IMG_TYPE_VMDK_VMDK:
img_info = vmdk_open(num_img, images, a_ssize);
break;
#endif
#if HAVE_LIBVHDI
case TSK_IMG_TYPE_VHD_VHD:
img_info = vhdi_open(num_img, images, a_ssize);
break;
#endif
default: default:
tsk_error_reset(); tsk_error_reset();
tsk_error_set_errno(TSK_ERR_IMG_UNSUPTYPE); tsk_error_set_errno(TSK_ERR_IMG_UNSUPTYPE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment