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 eb19852..aec728f 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);