mirror of
https://github.com/transmission/transmission.git
synced 2026-04-28 12:44:15 +01:00
Fix tr_moveFile error reporting
Remove unused `renamed` argument. Use tr_error instead of errno to report errors to support Win32 file wrappers which do not map Windows error codes to POSIX ones. Return bool instead of int (0/-1). Uncomment tr_error_prefix and tr_error_propagate_prefixed functions.
This commit is contained in:
@@ -16,12 +16,16 @@
|
||||
|
||||
#define TR_ERROR_IS_ENOSPC(code) ((code) == ERROR_DISK_FULL)
|
||||
|
||||
#define TR_ERROR_EINVAL ERROR_INVALID_PARAMETER
|
||||
|
||||
#else /* _WIN32 */
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#define TR_ERROR_IS_ENOSPC(code) ((code) == ENOSPC)
|
||||
|
||||
#define TR_ERROR_EINVAL EINVAL
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
#endif /* TR_ERROR_TYPES_H */
|
||||
|
||||
Reference in New Issue
Block a user