]> wimlib.net Git - wimlib/commitdiff
win32_capture_streams(): Only warn on stream lookup fail
authorEric Biggers <ebiggers3@gmail.com>
Sun, 28 Apr 2013 04:56:27 +0000 (23:56 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 28 Apr 2013 04:56:27 +0000 (23:56 -0500)
src/win32.c

index eb198525ee08332277518040522d20638be34c88..aec728fe17e4f319b6ee50daf945a5f137f588d8 100644 (file)
@@ -1045,10 +1045,10 @@ win32_capture_streams(const wchar_t *path,
                        return 0;
                } else {
                        if (err == ERROR_ACCESS_DENIED) {
-                               ERROR("Failed to look up data streams "
-                                     "of \"%ls\": Access denied!\n%ls",
-                                     path, capture_access_denied_msg);
-                               return WIMLIB_ERR_READ;
+                               WARNING("Failed to look up data streams "
+                                       "of \"%ls\": Access denied!\n%ls",
+                                       path, capture_access_denied_msg);
+                               return 0;
                        } else {
                                ERROR("Failed to look up data streams "
                                      "of \"%ls\"", path);