X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fextract_image.c;h=d637a10633410452e7b2372eb89bc90bb86bea57;hb=9fb3aaca115429b0af2a623bf20bfceef74f047f;hp=199d20b27ee50362959aa1062e29130e39a40aef;hpb=14baa6ae892debbaa18dba8119931580efd0e517;p=wimlib diff --git a/src/extract_image.c b/src/extract_image.c index 199d20b2..d637a106 100644 --- a/src/extract_image.c +++ b/src/extract_image.c @@ -989,9 +989,6 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, w->lookup_table = joined_tab; } -#ifdef __WIN32__ - win32_acquire_restore_privileges(); -#endif if (image == WIMLIB_ALL_IMAGES) { extract_flags |= WIMLIB_EXTRACT_FLAG_MULTI_IMAGE; ret = extract_all_images(w, target, extract_flags, @@ -1001,9 +998,6 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, ret = extract_single_image(w, image, target, extract_flags, progress_func); } -#ifdef __WIN32__ - win32_release_restore_privileges(); -#endif if (extract_flags & (WIMLIB_EXTRACT_FLAG_SYMLINK | WIMLIB_EXTRACT_FLAG_HARDLINK))