[Bf-blender-cvs] [7929d9e06f1] tmp-flock: BLI_fileops flock: More fixes.
Bastien Montagne
noreply at git.blender.org
Tue Jan 17 17:08:42 CET 2023
Commit: 7929d9e06f14b340c91bdde8601f2f09cf4d3b9f
Author: Bastien Montagne
Date: Tue Jan 17 17:08:27 2023 +0100
Branches: tmp-flock
https://developer.blender.org/rB7929d9e06f14b340c91bdde8601f2f09cf4d3b9f
BLI_fileops flock: More fixes.
===================================================================
M source/blender/blenlib/intern/fileops.c
===================================================================
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 40dfd1b656b..e7b48f53555 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -321,7 +321,7 @@ bool BLI_flock_exclusive(const int file_descriptor, const bool is_blocking)
bool BLI_flock_release(const int file_descriptor)
{
OVERLAPPED overlapp_info = {0};
- return UnlockFile(file_descriptor, 0, 0, MAX_INT, MAX_INT);
+ return UnlockFile(file_descriptor, 0, 0, INT_MAX, INT_MAX);
}
static bool delete_soft(const wchar_t *path_16, const char **error_message)
More information about the Bf-blender-cvs
mailing list