]> wimlib.net Git - wimlib/blobdiff - src/win32.c
native fds fixes/cleanups
[wimlib] / src / win32.c
index 0fd7508a66b406d62981a1268176331872505113..d403fba7ca611a7a5f5d7563122c66059e0011a2 100644 (file)
@@ -739,7 +739,7 @@ win32_capture_try_rpfix(u8 *rpbuf, u16 *rpbuflen_p,
                else
                        ret = -ret;
        } else {
-               if (ret == RP_EXCLUDED) {
+               if (rp_status == RP_EXCLUDED) {
                        size_t print_name_nchars = rpdata.print_name_nbytes / 2;
                        wchar_t print_name0[print_name_nchars + 1];
                        print_name0[print_name_nchars] = L'\0';
@@ -2646,10 +2646,6 @@ win32_rename_replacement(const wchar_t *oldpath, const wchar_t *newpath)
                return 0;
        } else {
                /* As usual, the possible error values are not documented */
-               DWORD err = GetLastError();
-               ERROR("MoveFileEx(): Can't rename \"%ls\" to \"%ls\"",
-                     oldpath, newpath);
-               win32_error(err);
                errno = -1;
                return -1;
        }