X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=tests%2Fmulti-mount%2Fmulti-mount.c;h=b6c5ff7602ca6d51db9fe2b885a0fd8b0111a762;hp=8b932860ee96fd84e32918eac9b33f62ff0fe19d;hb=799b86d9a6db3b581caa895fc786f6a38286fa0f;hpb=51f8edf82794f07055e3d9bcc8cd51bf0d86fae0 diff --git a/tests/multi-mount/multi-mount.c b/tests/multi-mount/multi-mount.c index 8b932860..b6c5ff76 100644 --- a/tests/multi-mount/multi-mount.c +++ b/tests/multi-mount/multi-mount.c @@ -9,22 +9,23 @@ int main(int argc, char **argv) WIMStruct *w2; assert(argc == 5); - ret = wimlib_open_wim(argv[1], 0, &w1); + ret = wimlib_open_wim(argv[1], 0, &w1, NULL); assert(ret == 0); - ret = wimlib_open_wim(argv[2], 0, &w2); + ret = wimlib_open_wim(argv[2], 0, &w2, NULL); assert(ret == 0); #pragma omp parallel num_threads(2) { int ret; assert(omp_get_num_threads() == 2); - if (omp_get_thread_num() == 0) - ret = wimlib_mount(w1, 1, argv[3], - WIMLIB_MOUNT_FLAG_DEBUG, NULL, 0); - else - ret = wimlib_mount(w2, 1, argv[4], - WIMLIB_MOUNT_FLAG_DEBUG, NULL, 0); + if (omp_get_thread_num() == 0) { + ret = wimlib_mount_image(w1, 1, argv[3], + WIMLIB_MOUNT_FLAG_DEBUG, NULL); + } else { + ret = wimlib_mount_image(w2, 1, argv[4], + WIMLIB_MOUNT_FLAG_DEBUG, NULL); + } assert(ret == 0); } return 0;